Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 181 — #207
i
i
i
i
i
i
i
i
5
Updating the System and Package Management
rpm -V wget
S.5....T c /etc/wgetrc
The files of the RPM database are placed in /var/lib/rpm. If the partition
/usr/ has a size of 1 GB, this database can occupy nearly 30 MB, especially
after a complete update. If the database is much larger than expected, it is
useful to rebuild the database with the option --rebuilddb. Before do-
ing this, make a backup of the old database. The cron script cron.daily
makes daily copies of the database (packed with gzip) and stores them in
/var/adm/backup/rpmdb. The number of copies is controlled by the
variable MAX_RPMDB_BACKUPS (default: 5) in /etc/sysconfig/backup.
The size of a single backup is approximately 3 MB for 1 GB in /usr.
5.3.5 Installing and Compiling Source Packages
All source packages of SUSE LINUX carry a .src.rpm extension (source
RPM).
Note
Source packages can be installed with YaST, like any other pack-
age. They will not, however, be marked as installed ([i]) in the
package manager. This is because the source packages are not
entered in the RPM database. When you install a source package,
only the source code is added to the system. The software itself
must be compiled. Only installed operating system software is
listed in the RPM database.
Note
The following directories must be available for rpm and rpmbuild in
/usr/src/packages (unless you specified custom settings in a file like
/etc/rpmrc):
SOURCES/ for the original sources (.tar.gz files, etc.) and for
distribution-specific adjustments (.dif files)
SPECS/ for the .spec files, similar to a meta Makefile, which control the
build process
BUILD/ all the sources are unpacked, patched, and compiled in this direc-
tory
RPMS/ where the completed binary packages are stored
181SUSE LINUX Enterprise Server










