Moxa DA-682A-C7-DPP [17/108] Cleaning out the package cache

Moxa DA-682A-C3-DPP-LX [17/108] Cleaning out the package cache
DA-682A-DPP Linux Software Software Configuration
2-11
2. The configuration file should look something like this:
deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main
3. Update the source list after you configure it.
moxa@Moxa:~# sudo apt-get update
4. Once you indicate which package you want to install (openswan, for example), type:
moxa@Moxa:~# sudo apt-get install openswan
5. Use one of the following commands to remove a package.
a. For a simple package removal:
moxa@Moxa:~# sudo apt-get remove openswan
b. For a complete package removal that removes all related configuration files, including those in
individual user directories:
moxa@Moxa:~# sudo apt-get remove openswan --purge
ATTENTION
The APT cache space
, /var/cache/apt is located in tmpfs. If you need to install a huge package, link
/var/cache/apt
to USB mass storage or mount it to an NFS space to generate more free space. If you worry
about the available space during a package installation, use the command
moxa@Moxa:~# df –h
to check how
much free space is available for tmpfs.
Cleaning Out the Package Cache
APT and the Debian system software utilities generally keep software packages stored on the system even
after installation. If the disk partition on which
/var is located runs out of space, you can free up space by
using the clean tag with apt-get.
moxa@Moxa:~# sudo apt-get clean
This will delete all software installation packages currently stored in the cache; deleting these packages will not
affect the functioning of the system, and will not affect the computers current configuration.
Determining Available Drive Space
To have the system return the amount of available drive space remaining, use the df command with the –h tag.
The system will return the amount of drive space broken down by file system, as shown in the example below:
moxa@Moxa:~# df –h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.4G 857M 6.4G 12% /
udev 10M 0 10M 0% /dev
tmpfs 202M 288K 202M 1% /run
/dev/disk/by-label/TC6110_MOXA 7.4G 857M 6.4G 12% /
tmpfs 5.0M 0 5.0M 0% /run/lock

Содержание

Похожие устройства

Скачать