package management with aptitude

Some tips for aptitude :

Updating package lists and upgrading
aptitude update

aptitude safe-upgrade
upgrades as many packages as possible but doesn’t uninstall anything

aptitude full-upgrade
upgrades as many packages as possible

To install / remove / reinstall packages
aptitude install/remove/reinstall <package name>
This also automatically resolves dependencie.

Purging Packages
remove doesn’t remove configuration files in a package.

aptiture purge <package name>
removes (if installed) and deletes any configuration files of the package.

aptiture purge ~c
purges all removed packages

to hold/unhold packages
holding a package means it will not be upgraded until it is unholded
aptitude hold/unhold <package name>

to search for packages
aptitude search <pattern>

in particular
aptitude search ~ahold lists all packages that are currently on hold

for details see SearchTermQuickGuide

Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s