mirror of https://github.com/CrimsonTome/tldr.git
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
parent
43de752277
commit
45cc18839d
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
- Install a package, or update it to the latest available version:
|
- Install a package, or update it to the latest available version:
|
||||||
|
|
||||||
`nala install {{package}}`
|
`sudo nala install {{package}}`
|
||||||
|
|
||||||
- Remove a package:
|
- Remove a package:
|
||||||
|
|
||||||
|
@ -18,19 +18,19 @@
|
||||||
|
|
||||||
- Search package names and descriptions using a word, regex (default) or glob:
|
- 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:
|
- Update the list of available packages and upgrade the system:
|
||||||
|
|
||||||
`nala upgrade`
|
`sudo nala upgrade`
|
||||||
|
|
||||||
- Remove all unused packages and dependencies from your system:
|
- Remove all unused packages and dependencies from your system:
|
||||||
|
|
||||||
`nala autoremove`
|
`sudo nala autoremove`
|
||||||
|
|
||||||
- Fetch fast mirrors to improve download speeds:
|
- Fetch fast mirrors to improve download speeds:
|
||||||
|
|
||||||
`nala fetch`
|
`sudo nala fetch`
|
||||||
|
|
||||||
- Display the history of all transactions:
|
- Display the history of all transactions:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue