Difference between revisions of "Package management in Ubuntu"
m |
m |
||
Line 37: | Line 37: | ||
apt-cache show <package-name> | apt-cache show <package-name> | ||
</pre> | </pre> | ||
===Removing package cache=== | |||
To delete complete cache, except locks, use: | |||
<pre> | |||
apt-get clean | |||
</pre> | |||
===Removing obsolete packages=== | |||
To remove packages that are no longer avaialble in parent repo for download from local apt-cache use: | |||
<pre> | |||
apt-get autoclean | |||
</pre> | |||
Line 47: | Line 64: | ||
Learn more at https://help.ubuntu.com/community/AptGet/Howto | Learn more at https://help.ubuntu.com/community/AptGet/Howto | ||
Revision as of 10:20, 17 November 2013
<yambe:breadcrumb>Ubuntu|Ubuntu</yambe:breadcrumb>
Package management in Ubuntu
Package management commands
Update package metadata
To get list of latest packages from repository servers use:
sudo apt-get update
Install package
To installing package use:
sudo apt-get install <package-name>
Searching package
To search for a package with name or word in description use:
apt-cache search <word>
List installed packages
To get list of all installed packages use:
dpkg --get-selections
Package information
To get information about package use:
apt-cache show <package-name>
Removing package cache
To delete complete cache, except locks, use:
apt-get clean
Removing obsolete packages
To remove packages that are no longer avaialble in parent repo for download from local apt-cache use:
apt-get autoclean
Package management tools
Package management tools supported by Ubuntu are:
- aptitude
- ncurses based
- synaptic
- Graphical
Learn more at https://help.ubuntu.com/community/AptGet/Howto
Miscellaneous issues
Copying apt-cache
To copy apt-cache from one machine to other so that the same packages do not get downloaded from Internet again copy contents of folder '/var/cache/apt' to other machine.
<yambe:breadcrumb>Ubuntu|Ubuntu</yambe:breadcrumb>