Skip to content

Commit

Permalink
nala: fix usage of sudo (tldr-pages#10166)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fwilhe2 authored May 9, 2023
1 parent 43de752 commit 45cc188
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pages/linux/nala.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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:

Expand Down

0 comments on commit 45cc188

Please sign in to comment.