Moxa UC-8410A-T-LX [59/86] Package management

Moxa UC-8410A-LX [59/86] Package management
UC-8410A Series Linux Software General Debian Package Usage
5-19
ATTENTION
When using an OpenVPN
-related application, you need to create a firewall policy.
On the server’s firewall, open UDP 1194 (default port).
If you are
using shorewall on both devices, add a new
VPN zone to represent tun0 and create a default policy for it.
This means adding something to the following files
in /etc/shorewall:
zone
interfaces
policy
Bear in mind that 90% of all connection prob
lems encountered by new OpenVPN users are firewall-related.
NOTE
Click the following links for more information on OpenVPN:
https://wiki.debian.org/OpenVPN
http://openvpn.net/
Package Management
In this section, we explain how you can quickly learn to install, remove, update, and search for software
packages using the
apt-get and apt-cache commands from the command line. Some useful commands
that will help you handle package management in Debian/Ubuntu based systems are listed in this section.
apt-get
The apt-get utility is a powerful and free package management command line program that is used with
Ubuntu’s APT (Advanced Packaging Tool) library to install new software packages, remove existing software
packages, upgrade existing software packages, and even upgrade the entire operating system.
apt-cache
The apt-cache command line tool is used to search for apt software package cache. That is, the tool is used
to search for software packages, collect package information, and search for which available packages are
ready for installation on Debian or Ubuntu based systems.
List All Available Packages
Use the following command to list all available packages:
moxa@Moxa:~$ sudo apt-cache pkgnames
Find Package Name and Software Description
To find the package name and description, use the “search” flag. Using “search” with apt-cache will display a
list of matched packages with short descriptions. For example, if you would like to find the description of
package “vim”, use the following command:
moxa@Moxa:~$ sudo apt-cache search vim
To find and list all packages starting with “vim”, use the following command:
moxa@Moxa:~$ sudo apt-cache pkgnames vim

Содержание

Скачать