Name
aptitude — stdin stdout - file -- opt --help --version
Synopsis
aptitude [options] [packages]
aptitude is a package
manager for the command line that manipulates Debian (.deb) packages. Some older Debian package
managers, including Advanced Packaging Tool (the apt-get command suite) and dpkg, are also in wide use today. (In our
table of commands, we’ll use dpkg
to work with local files, since aptitude does not do this.) You’ll also
encounter graphical package managers like synaptic and Ubuntu’s update-manager.
|
Action |
yum command |
|---|---|
|
Search for a package that meets your needs |
aptitude search
|
|
Check if a package is installed (examine the output for “State: not installed” or “State: installed”) |
aptitude show
|
|
Download a package but don’t install it |
aptitude download
|
|
Download and install a package |
aptitude install
|
|
Install a package file |
dpkg -i
|
|
Learn about a package |
aptitude show
|
|
List the contents of a package |
dpkg -L
|
|
Discover which package an installed file belongs to |
dpkg -S
|
|
Update an installed package |
aptitude safe-upgrade
|
|
Remove an installed package |
aptitude remove
|
|
List all packages installed on the system |
aptitude search '~i' | less |
|
Check for updates for all packages on the system |
aptitude --simulate full-upgrade |
|
Update all packages on the system |
aptitude full-upgrade |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access