0% found this document useful (0 votes)
85 views15 pages

Installing Program: Csnb113 System Administration College of Information Technology Universiti Tenaga Nasional (UNITEN)

The document discusses package management in UNIX systems. It introduces apt and dpkg as the main package management tools in Debian/Ubuntu systems. Apt is used to install, upgrade, remove packages from repositories listed in /etc/apt/sources.list. It also searches for packages. Dpkg is a lower level tool to directly install and manage packages. The document provides examples of common apt and dpkg commands.

Uploaded by

Akhmal Haziq
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views15 pages

Installing Program: Csnb113 System Administration College of Information Technology Universiti Tenaga Nasional (UNITEN)

The document discusses package management in UNIX systems. It introduces apt and dpkg as the main package management tools in Debian/Ubuntu systems. Apt is used to install, upgrade, remove packages from repositories listed in /etc/apt/sources.list. It also searches for packages. Dpkg is a lower level tool to directly install and manage packages. The document provides examples of common apt and dpkg commands.

Uploaded by

Akhmal Haziq
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Chapter 7 Installing Program

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

package management O No standard tool to install and remove packages

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

Storage for Packages


O /etc/apt/sources.list

SN 2013

APT
O Advance Package Tool - Management system

for software packages

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,

package name on all available package list


# apt-cache search <word>

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

You might also like