1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 21:17:57 +01:00
tldr/pages/linux/nala.md
Florian Wilhelm 45cc18839d
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.
2023-05-09 15:42:56 +05:30

775 B

nala

Package management Utility. Wrapper for the apt package manager. More information: https://gitlab.com/volian/nala.

  • Install a package, or update it to the latest available version:

sudo nala install {{package}}

  • Remove a package:

sudo nala remove {{package}}

  • Remove a package and its configuration files:

nala purge {{package}}

  • Search package names and descriptions using a word, regex (default) or glob:

nala search "{{pattern}}"

  • Update the list of available packages and upgrade the system:

sudo nala upgrade

  • Remove all unused packages and dependencies from your system:

sudo nala autoremove

  • Fetch fast mirrors to improve download speeds:

sudo nala fetch

  • Display the history of all transactions:

nala history