Moxa TC-6110-T-LX [18/117] Cleaning out the package cache

Moxa TC-6110-CT-W7E [18/117] Cleaning out the package cache
TC-6110 Linux User's Manual Basic Platform Configuration
2-11
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, u
se the command moxa@Moxa:~# df –h to check ho
w
muc
h 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
tmpfs 403M 4.0K 403M 1% /run/shm
/dev/sdd1 7.5G 553M 7.0G 8% /media/usb0

Содержание

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

Скачать