
UC-8100-LX Software Manual
General Debian Package Usage
5-18
50B
Package Management
This article explains how quickly you can learn to install, remove, update and search software packages using
apt-get and apt-cache commands from the command line. This article provides some useful commands that
will help you to handle package management in Debian/Ubuntu based systems.
105B
apt-get
The apt-get utility is a powerful and free package management command line program, that is used to work
with Ubuntu’s APT (Advanced Packaging Tool) library to perform installation of new software packages,
removing existing software packages, upgrading of existing software packages and even used to upgrading the
entire operating system.
106B
apt-cache
The apt-cache command line tool is used for searching apt software package cache. In simple words, this tool
is used to search software packages, collects information of packages and also used to search for what
available packages are ready for installation on Debian or Ubuntu based systems.
107B
List All Available Packages
Use the following command to list all available packages.
moxa@Moxa:~$ sudo apt-cache pkgnames
108B
Find Out Package Name and Description of Software
To find out the package name and the description, use the ‘search‘ flag. Using “search” with apt-cache will
display a list of matched packages with short description. Let’s say you would like to find out description of
package ‘vim‘, then command would be.
moxa@Moxa:~$ sudo apt-cache search vim
To find and list down all the packages starting with ‘vim’, you can use the following command.
moxa@Moxa:~$ sudo apt-cache pkgnames vim
109B
Check Package Information
If you would like to check information of package along with it short description say (version number, check
sums, size, installed size, category etc). Use ‘
show
‘ sub command as shown below.
moxa@Moxa:~$ sudo apt-cache show vim
110B
Check Dependencies for Specific Packages
Use the ‘
showpkg
‘ sub command to check the dependencies for particular software packages. whether those
dependencies packages are installed or not. For example, use ‘
showpkg
‘ command along with package-name.
moxa@Moxa:~$ sudo apt-cache showpkg vim
111B
Check statistics of Cache
The ‘
stats
‘ sub command will display overall statistics about the cache. For example, the following command
will display Total package names is the number of packages have found in the cache.
moxa@Moxa:~$ sudo apt-cache stats
Содержание UC-8100-LX
Страница 8: ...UC 8100 LX Software Getting Started 2 2...
Страница 38: ...UC 8100 LX Software Manual Security On UC 8100 LX 4 2...