ubuntu

apt-get and apt-cache

apt-cache

 

apt-cache pkgnames

apt-cache pkgnames ‘first few letters’

‘search’ will also show a small description of what that package does

apt-cache search pkgname

Show will display more about the version and so on.

apt-cache show rrdtool

showpkg will also show dependencies

apt-cache showpkg rrdtool

apt-get

update

apt-get update

Upgrade will upgrade all.

apt-get upgrade

Upgrade a package

apt-get upgrade packagename

apt-get install packageName --only-upgrade

install

apt-get install packagename

Install a specific version

apt-get install packagename=1.2.2

remove

apt-get remove packagename

Completely remove with their configuration files

sudo apt-get purge packagename

Remove an installed package with its dependencies.

sudo apt-get autoremove mesosphere

Install multiple package

apt-get install package1 package2

Already install packages will not upgrade

apt-get install packageName --no-upgrade

Clean: frees the disk space by removing the already installed .deb files.

apt-get clean

 

 

 

 

 

 

Advertisements

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