nala-install8
Install packages
Usage
nala install
[--options]
PKGS ...
Overview
Install works similar to the way it does in apt.
nala takes multiple packages as arguments and will install all of them.
To install a specific version of a package you may use the = sign as below
|
nala install tmux=3.3a-3~bpo11+1 |
|---|---|
Nala can also install packages directly from a URL such as:
|
nala install https://example.org/path/to/pkg.deb |
Options
-
--purge -
Purge any packages that would removed during the transaction.
-
--debug -
Print helpful information for solving issues. If you're submitting a bug report try running the command again with --debug and providing the output to the devs, it may be helpful.
-
--raw-dpkg -
Force
nalanot to formatdpkgoutput.This disables all formatting and it would look as if you were using
apt.A more indepth explanation for what this switch does,
nalawill fork a tty instead of a pty fordpkg.nalawill also not display a progress bar fordpkgwith this turned on. Additionally the language of the output will not be forced into English for this mode.
-
-d, --download-only -
Packages are only retrieved, not unpacked or installed.
-
-t, --target-release -
Set the release in which Nala will install packages from
Example: Install neofetch from the testing repo:
nala install --target-release testing neofetch
-
--remove-essential -
Allow the removal of essential packages.
This is very dangerous, but we thought you should have the option.
-
--assume-yes, --assume-no -
-y, --assume-yes
Automatically select yes for any prompts which may need your input.
If the configuration option assume_yes is true, this switch will set it back to default behavior
-n, --assume-no
Automatically select no for any prompts which may need your input.
-
--simple, --no-simple -
--simple
Show a more simple and condensed transaction summary.
--no-simple
Show the standard table transatction summary with more information.
This variant is the
default
-
-o, --option -
Set options to pass through to
apt,nala, ordpkg.- Example:
-
Force
dpkgto install new config files without prompting:nala install --option Dpkg::Options::="--force-confnew"
Disable scrolling text for
nalanala install --option Nala::scrolling_text="false"
Allow
nalatoupdateunauthenticated repositories:nala install --option* APT::Get::AllowUnauthenticated="true"
-
-v, --verbose -
Disable scrolling text and print extra information
-
-h, --help -
Shows this man page.
-
--autoremove, --no-autoremove -
-
--autoremove -
Automatically remove any packages that are no longer needed.
This variant is the
default--no-autoremove
Do NOT Automatically remove any packages
-
-
--update, --no-update -
-
--update -
Update the package list before the requested operation.
Example:
nala install --update
neofetchis equivalent to
apt update && apt install neofetch
[Default for:
upgrade]--no-update
Do NOT update the package list before the requested operation.
[Default for:
install,remove,purge,autoremove,autopurge]
-
-
--install-recommends, --no-install-recommends -
-
--install-recommends -
Recommended packages will be installed.
This variant is the
defaultunless changed with theaptconfig.--no-install-recommends
Recommended package will NOT be installed.
If this option is selected
nalawill display the recommended packages that will not be installed.
-
-
--install-suggests, --no-install-suggests -
-
--install-suggests -
Suggested packages will be installed.
This variant is the
default--no-install-suggests
This variant is the
defaultunless changed with theaptconfig.If this option is selected
nalawill display the suggested packages that will not be installed.
-
-
--fix-broken, --no-fix-broken -
-
--fix-broken -
Attempts to fix broken packages.
This variant is the
default--no-fix-broken
Stops
nalafrom performing extra checks.This can result in a broken install!
If you just want to fix broken packages:
nala install --fix-broken
-
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.
--target-release since Debian 13 (Trixie);
-t since Debian 13 (Trixie).