Moxa UC-8410A-LX [61/86] Clean up disk space

Moxa UC-8410A-T-LX [61/86] Clean up disk space
UC-8410A Series Linux Software General Debian Package Usage
5-21
Upgrade Specific Packages
Use the –only-upgrade sub command to NOT install new packages, but only upgrade already installed
packages.
moxa@Moxa:~$ sudo apt-get install packageName --only-upgrade
Install Specific Package Version
To install a specific version of a package, use “=” with the package name and the version as shown below:.
moxa@Moxa:~$ sudo apt-get install wget=1.13.4-3+deb7u1
Remove Packages Without Configuration
To un-install software packages without removing their configuration files (for reusing the same configuration
later), use the
remove command:
moxa@Moxa:~$ sudo apt-get remove wget
Completely Remove Packages
To remove software packages along with their configuration files, use the purge sub command:
moxa@Moxa:~$ sudo apt-get remove --purge wget
Clean Up Disk Space
Use the clean command to free up the disk space by cleaning retrieved (downloaded) .deb files (packages)
from the local repository.
moxa@Moxa:~$ sudo apt-get clean
Download Only Source Code of Package
To download only the source code of a particular package, use the –download-only source option along
with the package name as shown below:
moxa@Moxa:~$ sudo apt-get --download-only source wget
Download and Unpack a Package
To download and unpack the source code of a package to a specific directory, type the following command:
moxa@Moxa:~$ sudo apt-get source wget
Download, Unpack, and Compile a Package
You can also download, unpack, and compile the source code all at the same time, using the –compile option,
as shown below:
moxa@Moxa:~$ sudo apt-get --compile source wget

Содержание

Скачать