Installing Program: Csnb113 System Administration College of Information Technology Universiti Tenaga Nasional (UNITEN)
Installing Program: Csnb113 System Administration College of Information Technology Universiti Tenaga Nasional (UNITEN)
CSNB113 SYSTEM ADMINISTRATION College of Information Technology Universiti Tenaga Nasional (UNITEN)
SN 2013
Objectives
O apt as package manager
O Managing program using apt O dpkg as advance package manager
SN 2013
Introduction
O UNIX is quite fragmented in the area of
SN 2013
Packages
O Package all software, including installation
instructions, helper files, documentation (the famous 'man'-pages) into a package; a bit like an archive
SN 2013
SN 2013
APT
O Advance Package Tool - Management system
SN 2013
Updating Packages
O Resynchronize the package index files from
their sources O Indexes of available packages location(s): /etc/apt/sources.list O Should perform before upgrade
# apt-get update
SN 2013
Upgrading Packages
O Install newest versions of all packages
currently installed on the system from the sources enumerated in /etc/apt/sources.list O An update must be performed first so that aptget knows that new versions of packages are available
# apt-get upgrade
SN 2013
Installing/Removing Packages
Command # apt-get install # apt-get remove Get Description Performs installation of the packages or upgrading of the current filename Performs removing the packages
SN 2013
Searching Packages
O Searches package names, short descriptions,
SN 2013
10
Searching Packages
O Example: I want to search any package that
consists game
# apt-cache search game
SN 2013
11
Description Packages
O Display the specific information about the
selected package
# apt-cache show <package>
SN 2013
12
Description Packages
O Example: I want to know more about gnibbles
package
# apt-cache search gnibbles
SN 2013
13
dpkg
O Tool to install, build, remove and manage
Debian packages - Useful for complex tasks O dpkg command O Common options:
O -l : list packages matching give pattern O -L : list files installed to your system from
package-name
SN 2013
14
References
1. Das, S. (2012). Your UNIX/LINUX The
Ultimate Guide: Third Edition. McGraw-Hill 2. Hahn, H. (2008). Harley Hahn's Guide to Unix and Linux. California: McGraw-Hill Higher Education
SN 2013
15