From 45cc18839d6c49a3e8c001bc02646f24282d8a93 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm <52838694+fwilhe2@users.noreply.github.com> Date: Tue, 9 May 2023 12:12:56 +0200 Subject: [PATCH] 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. --- pages/linux/nala.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/linux/nala.md b/pages/linux/nala.md index 3096140be..3752c11bf 100644 --- a/pages/linux/nala.md +++ b/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: