
UC-8100-LX Software Manual
General Debian Package Usage
5-19
112B
Update System Packages
The ‘
update
‘ command is used to resynchronize the package index files from the their sources specified in
/etc/apt/sources.list
file. The updated commands will fetch the packages from their locations and update
the packages to newer version.
moxa@Moxa:~$ sudo apt-get update
113B
Install or Upgrade Specific Packages
The ‘
install
‘ sub command is tracked by one or more packages wish for installation or upgrading.
moxa@Moxa:~$ sudo apt-get install vim
114B
Upgrade All Software Packages
The
upgrade
command is used to upgrade all the currently installed software packages on the system. Under
any circumstances currently installed packages are not removed or packages which are not already installed
neither retrieved and installed to satisfy upgrade dependencies.
moxa@Moxa:~$ sudo apt-get upgrade
115B
Install Multiple Packages
You can add more than one package name along with the command in order to install multiple packages at the
same time. For example, the following command will install packages ‘vim‘ and ‘goaccess‘.
moxa@Moxa:~$ sudo apt-get install vim goaccess
116B
Install Several Packages using Wildcard
With the help of regular expression you can add several packages with one string. For example, we use
*
wildcard to install several packages that contains the ‘
*name*
‘ string, name would be ‘package-name’.
117B
Install Packages without Upgrading
Using sub ‘
–no-upgrade
‘ command will prevent the installed packages from upgrading.
moxa@Moxa:~$ sudo apt-get install packageName --no-upgrade
118B
Upgrade Specific Packages
The ‘–only-upgrade‘ command do not install new packages but it only upgrade the already installed packages
and disables new installation of packages.
moxa@Moxa:~$ sudo apt-get install packageName --only-upgrade
119B
Install Specific Package Version
Let’s say you wish to install only specific version of packages, simply use the ‘
=
‘ with the package-name and
append desired version.
moxa@Moxa:~$ sudo apt-get install wget=1.13.4-3+deb7u1