APT basic commands

June 24, 2007

I’m testing Debian (The best distro 😉 ) 4.0 “Etch” in one computer of my LAN, and i decided to do a quick commands list about APT.

To install a package:

  • apt-get install [package_name]

Reinstalling a package:

  • apt-get –reinstall install [package_name]

Removing a package (Will remove all the dependencies of the package):

  • apt-get remove [package_name]

Removing a package, and delete ALL about the package (Configuration files, doc files, etc):

  • apt-get –purge remove [package_name]

Updating the APT source list (/etc/apt/sources.list )

  • apt-get update

Upgrading our packages to the last know version:

  • apt-get -u upgrade

Upgrading our distro version:

  • apt-get -u dist-upgrade

Searching a package:

  • apt-cache search [name]

There’s much more commands and options in APT, if you need a specific option, look the official APT doc.

See you Debianitas 😉


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: