Managing Packages in Ubuntu

Add comments

From the desktop:

System > Administration > Synaptic Package Manager

From the command line:

Adding new package

> sudo apt-get install <package name>

Removing package

> apt-get remove <package name>

Removing package and All Configuration Files

> apt-get remove --purge <package name>

Updating your installed packages

> sudo apt-get update
> sudo apt-get upgrade

or

> sudo apt-get install <package name>

APT will consider your command to be an update and see if a newer version is available.

Searching for a Package

> apt-cache search <package name>

To search only in the package names

> apt-cache -n search <package name>

To show more information about the package

> apt-cache showpkg <package name>

Cleaning Package Cache

APT maintains a package cache where it stores .deb files it has downloaded and installed. This lives in /var/cache/apt/archives, and can take up many disk space on your computer.

To delete all the cached .deb files

> apt-get clean

To delete the cached .deb files that are older than a certain, and only keeping newer packages

> apt-get autoclean

List Installed Packages

> dpkg --list

Related posts:

  1. Using dpkg to Install Debian Packages
  2. Running Windows Application on Ubuntu
  3. Setting Default JVM in Ubuntu
  4. Ubuntu Quickstart Guide
  5. OpenSSH for Ubuntu Quickstart Guide

Comments are closed.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in