Home Internet Mail Server Proxy Server Virus Windows Windows Server

Monday, April 09, 2012

How to Install Packages in Ubuntu Server Online


Command-line of apt-get work with Ubuntu's Advanced Packaging Tool (APT), that have functions as new software packages installation, package list index updating, upgrade the existing software packages, and upgrade the Ubuntu system.

Command-line of apt-get has advantages in Ubuntu for server administrators include ease of use over simple terminal connections (SSH) and the ability to be used in system administration scripts.

Some uses for the apt-get utility:
  • Install a Package
It's simple tool for installation of packages using the command-line of apt-get. For example, to install the Network Time Protocol (NTP), type the following:

sudo apt-get install ntp
  • Remove a Package
Simple process for removal of packages. For example remove the ntp package that have installed:
sudo apt-get remove ntp
Notes:
For multiple packages, you can installed or removed packages, separated by spaces.
  • Update the Package Index
To update the local package index with the latest change using the following command:

sudo apt-get update
Notes:
The packages database available in repositories in the /etc/apt/sources.list file.
  • Upgrade Packages
Upgrade Packages update the versions of packages currently installed. To upgrade system, first update package index and type:

sudo apt-get upgrade
For such an upgrade, use the dist-upgrade command.
Upgrade entire Ubuntu system from one revision to another with dist-upgrade.

sudo apt-get dist-upgrade

For example, upgrade from Ubuntu old version to new version, first ensure the new version repositories replace the existing repositories (old version) see at /etc/apt/sources.list
Log of installation and removal of packages are logged in the /var/log/dpkg.log log file.
Advanced Packaging Tool (APT) help with this command-line:
apt-get help

0 comments:

Post a Comment

Home Photography
Copyright © 2017 Xiu's Blog | All Rights Reserved.