nala: fix usage of sudo (#10166)

This page mentions using sudo for searching where no root permissions are needed, but does not mention sudo for commands that need root permission.

This commit fixes the this by adding sudo to the commands that need root. Alternatively, sudo could be removed from all commands as users might also use another way to get privileges than sudo.
pull/23/head
Florian Wilhelm 2023-05-09 12:12:56 +02:00 committed by GitHub
parent 43de752277
commit 45cc18839d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
- Install a package, or update it to the latest available version:
`nala install {{package}}`
`sudo nala install {{package}}`
- Remove a package:
@ -18,19 +18,19 @@
- Search package names and descriptions using a word, regex (default) or glob:
`sudo nala search "{{pattern}}"`
`nala search "{{pattern}}"`
- Update the list of available packages and upgrade the system:
`nala upgrade`
`sudo nala upgrade`
- Remove all unused packages and dependencies from your system:
`nala autoremove`
`sudo nala autoremove`
- Fetch fast mirrors to improve download speeds:
`nala fetch`
`sudo nala fetch`
- Display the history of all transactions: