Moxa DA-681A-I-DPP-T-LX [15/79] Checking the linux version

Moxa DA-681A-I-DPP-T-LX [15/79] Checking the linux version
DA-681A Series Linux Software Configuration
2-8
Checking the Linux Version
The program uname, which stands for “Unix Name” and is part of the Unix operating system, 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:~# uname -a
Linux Moxa 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-2 (2015-04-13) x86_64 GNU/Linux
root@Moxa:~#
APT—Installing and Removing Packages
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. Next, configure the /etc/apt/sources.list using vi editor.
root@Moxa:~# vi /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free
2. Update the source list after you configure it.
root@Moxa:~# apt-get update
root@Moxa:~#
3. Once you indicate which package you want to install (vim, for example), type:
root@Moxa:~# apt-get install vim
root@Moxa:~#
4. Use one of the following commands to remove a package:
(a) For a simple package removal:
root@Moxa:~# apt-get remove vim
root@Moxa:~#
(b) For a complete package removal:
root@Moxa:~# apt-get remove vim --purge
root@Moxa:~#
ATTENTION
The APT cache space
/var/cache/apt is located in tmpfs. If you need to install a huge package, link
/v
ar/cache/apt to USB mass storage or mount it to an NFS space to generate more free space. Use df h
to
check how much free space is available on
tmpfs.

Содержание

Скачать