Novell LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION Installation Manual page 339

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION:
Table of Contents

Advertisement

--scripts
For example, the command rpm -q -i wget displays the information shown in
Example 16.1, "rpm -q -i wget" (page 321).
Example 16.1 rpm -q -i wget
Name
: wget
Version
: 1.9.1
Nuernberg, Germany
Release
: 50
03:49:13 AM CEST
Install date: Mon 11 Oct 2004 10:24:56 AM CEST
Group
: Productivity/Networking/Web/Utilities
wget-1.9.1-50.src.rpm
Size
: 1637514
Signature
: DSA/SHA1, Sat 02 Oct 2004 03:59:56 AM CEST, Key ID
a84edae89c800aca
Packager
: http://www.suse.de/feedback
URL
: http://wget.sunsite.dk/
Summary
: A tool for mirroring FTP and HTTP servers
Description :
Wget enables you to retrieve WWW documents or FTP files from a server.
This can be done in script files or via the command line.
[...]
The option -f only works if you specify the complete filename with its full path. Provide
as many filenames as desired. For example, the following command
rpm -q -f /bin/rpm /usr/bin/wget
results in:
rpm-4.1.1-191
wget-1.9.1-50
If only part of the filename is known, use a shell script as shown in Example 16.2,
"Script to Search for Packages" (page 321). Pass the partial filename to the script shown
as a parameter when running it.
Example 16.2 Script to Search for Packages
#! /bin/sh
for i in $(rpm -q -a -l | grep
echo "\"$i\" is in package:"
rpm -q -f $i
echo ""
done
Installation scripts (preinstall, postinstall, uninstall)
Relocations: (not relocatable)
Build Date: Sat 02 Oct 2004
$1); do
Vendor: SUSE LINUX AG,
Build Host: f53.suse.de
Source RPM:
License: GPL
RPM—the Package Manager
321

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 sp3

Table of Contents