Moxa DA-682A-C7-W7E [16/112] Checking versions for your kernel and os

Moxa DA-682A-C7-W7E [16/112] Checking versions for your kernel and os
DA-682A Linux Softrware Software Configuration
2-10
Checking Versions for your Kernel and OS
The program uname prints the name, version, and other details about the operating system running on the
computer. Use the -a option to generate a response similar to the one shown below:
root@moxa@Moxa:~# uname -a
Linux Moxa 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1 i686 GNU/Linux
If you would like to check Moxa’s firmware revision, type:
moxa@MOXA:~# kversion –a
Using APT to Install and Remove Software
APT is the Debian tool used to install and remove packages. Before installing a package, you need to configure
the apt source file,
/etc/apt/sources.list.
1. Open the sources.list file in.the vi editor.
moxa@MOXA:~# sudo vi /etc/apt/sources.list
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. You may 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, u
se the command moxa@Moxa:~# df –h to check ho
w
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.

Содержание

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