Wiley 978-0-7645-7644-7 Datasheet

Browse online or download Datasheet for Software manuals Wiley 978-0-7645-7644-7. Wiley Debian GNU/Linux 3.1 Bible User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 32
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Software
Management
T
he basic unit of software in Debian and, indeed, in
almost every major operating system today is the
package. A lot of effort goes into making a package that’s easy
to install and works on the first try. Each package needs to
declare its relationship to other packages; perhaps it needs a
library written by another author, or a separate program to
round out functionality. Packages also need to monitor and
work with their configuration files to ease upgrades and pre-
serve changes.
A large part of administering a system whether by a home
user or a paid administrator taking care of thousands of
machines is maintaining the software installed on the com-
puters. This chapter provides some basic background on
packaging systems in general, as well as hands-on examples
for maintaining software on a Debian system.
The Anatomy of a Software Package
This section reviews the properties common to almost all
packaging systems, as well as some traits unique to Debian
packages.
Common package properties
Everything about a packaging system, whether source or
binary, is designed around standardization and ease of use.
With the source code available, each user is perfectly capable
of configuring and compiling (building, which is not to be con-
fused with writing) his own software, but the end result is a
very unique machine that can be difficult to administer.
4
4
CHAPTER
✦✦✦✦
In This Chapter
Package anatomy
Debian packages
Finding and
examining packages
Installing packages
Removing packages
Configuring
packages
Integrity-checking
Package repositories
apt pinning
✦✦✦✦
09_576445 ch04.qxd 7/5/05 3:10 PM Page 71
COPYRIGHTED MATERIAL
Page view 0
1 2 3 4 5 6 ... 31 32

Summary of Contents

Page 1 - Management

SoftwareManagementThe basic unit of software in Debian— and, indeed, inalmost every major operating system today — is thepackage. A lot of effort goes

Page 2

80Part I ✦ The Fundamentalsdpkg can also display which files are part of a given package and search for whichpackage owns a particular file. These act

Page 3 - Debian’s packages

81Chapter 4 ✦ Software ManagementFigure 4-1: aptitude’s main display.3. Aside from the categories shown in Figure 4-1, at times others will appear,suc

Page 4 - Package Relationships

82Part I ✦ The FundamentalsDon’t quit aptitude yet because we’ll examine the ed package in more detail laterin this chapter.Showing package detailsOf

Page 5 - Configuration files

83Chapter 4 ✦ Software ManagementDepends: libc6 (>= 2.3.1-1)Filename: pool/main/e/ed/ed_0.2-20_i386.debSize: 44718MD5sum: 0c466ce6a160c62fa558fbbb4

Page 6 - Package Management Tools

84Part I ✦ The Fundamentalsslash key tells aptitude that you will be typing in a term to search for. This termwill be searched for in all packages’ na

Page 7

85Chapter 4 ✦ Software ManagementInstalling PackagesNow that you know how to find packages, you likely want to install some. I’ll useseveral example p

Page 8 - Listing installed packages

86Part I ✦ The FundamentalsThe output you get won’t be identical to the output here, but it should be close. Ifyou get any errors, chances are your /e

Page 9 - Status Indicators

87Chapter 4 ✦ Software Managementhostname:~# apt-cache show mutt | grep –E ‘^(Depends|Recommends)’Depends: libc6 (>= 2.3.2.ds1-4), libidn11, libncu

Page 10 - Part I ✦ The Fundamentals

88Part I ✦ The FundamentalsSetting up mime-support (3.26-1) ...Setting up mutt (1.5.5.1-20040112+1) ...Setting up libsasl2-modules (2.1.18-2) ...Readi

Page 11

89Chapter 4 ✦ Software ManagementRemoving and Purging PackagesIn Debian, great pains are taken to ensure that configuration data is kept intact.When a

Page 12 - Showing package details

72Part I ✦ The FundamentalsSource packages versus binary packagesA source package is a package that is made up completely of source code. Sourcecode i

Page 13 - Searching with aptitude

90Part I ✦ The FundamentalsPurging configuration files for vim ...hostname:~# ls /etc/vim/ls: /etc/vim/: No such file or directoryhostname:~#apt-get a

Page 14

91Chapter 4 ✦ Software ManagementAs you can see, the packages that were installed alongside mutt were also removedwhen you asked for mutt’s removal. T

Page 15 - Installing Packages

92Part I ✦ The Fundamentalsbut you can also invoke them later on to reconfigure the package. This is done byrunning dpkg-reconfigure packagename:hostn

Page 16

93Chapter 4 ✦ Software ManagementLet’s take a working example, and reinstall vim. If you haven’t purged it already, doso now with aptitude purge vim.

Page 17

94Part I ✦ The FundamentalsSince the configuration file you created is fake, press Y and press Enter to use thepackaged version. The installation will

Page 18

95Chapter 4 ✦ Software ManagementIf there are a number of upgrades available but you want to upgrade only one ormore specific packages, you can instea

Page 19 - Removing and Purging Packages

96Part I ✦ The FundamentalsPackage Repositories and /etc/apt/sources.listAlthough Debian’s package repositories are very large and complete, they don’

Page 20

97Chapter 4 ✦ Software ManagementSometimes the default is not good enough. apt’s “pinning” feature lets you changeit. Here are a few scenarios where y

Page 21

98Part I ✦ The FundamentalsCandidate: 1:1.3.4-1Version Table:1:1.3.4-1 0500 http://http.us.debian.org sid/main Packages500 http://http.us.debian.org e

Page 22 - Configuration file handling

99Chapter 4 ✦ Software ManagementEach stanza of this file consists of several fields, each on their own line. (Within astanza, fields don’t need to be

Page 23

73Chapter 4 ✦ Software ManagementBinary packages are not without their drawbacks, however. Notably, they tend torequire more ancillary software to be

Page 24 - Upgrading Packages

100Part I ✦ The Fundamentalskword? You can temporarily override your pinning preferences with apt-get’s --target-releaseoption (synonyms are -t and --

Page 25 - Integrity-Checking Packages

101Chapter 4 ✦ Software ManagementYou can also override version preferences on the apt-get command line like this:# apt-get install kword=1:1.3.4-1And

Page 26

09_576445 ch04.qxd 7/5/05 3:10 PM Page 102

Page 27 - /etc/apt/sources.list

74Part I ✦ The Fundamentalsmost users find the most compelling aspect of Debian to be its package manage-ment system. This subsection discusses its pa

Page 28 - /etc/apt/preferences

75Chapter 4 ✦ Software ManagementMaintaining package relationships is a large part of a Debian maintainer’s jobbecause these relatively simple concept

Page 29

76Part I ✦ The FundamentalsPackage repositoriesPackage repositories are large archives of packages that are stored, usually on theInternet, for users

Page 30

77Chapter 4 ✦ Software Managementapt-get, however, is just one part of the apt family. apt-cache, for example,is the apt family’s command-line search

Page 31

78Part I ✦ The FundamentalsListing installed packagesListing installed packages is a pretty easy task, and you can use either dpkg oraptitude to do it

Page 32

79Chapter 4 ✦ Software Managementto lose power during a package maintenance session, the database would be left inan inconsistent state. There’s actua

Comments to this Manuals

No comments