Browse Source

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.
Florian Wilhelm 1 year ago
parent
commit
45cc18839d
1 changed files with 5 additions and 5 deletions
  1. 5 5
      pages/linux/nala.md

+ 5 - 5
pages/linux/nala.md

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