Ubuntu/Debian’s apt-get commands

This is a useful list of commands for managing packages on Ubuntu or Debian.

This will show you what versions of a package are available for your system.

apt-cache showpkg <package>

This will install the latest version of the package.

apt-get install <package>

This will install a specific version of the package. The version can be obtained from the apt-cache command above.

apt-get install <package>=<version>

This will show you what version you have installed.

apt-show-versions <package>

This will remove the package.

apt-get --purge remove <package>
Advertisements
Tagged , ,

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: