RPM

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
Line 14: Line 14:
Installing packages:
Installing packages:
-
<pre>
+
rpm {-i|-U|-F} [install-options] PACKAGE_FILE ...
-
rpm {-i|-U|-F} [install-options] PACKAGE_FILE ...
+
 
-
</pre>
+
Removing packages:
Removing packages:
Line 27: Line 26:
Querying package contents:
Querying package contents:
 +
rpm -q [select-options] [query-options]
 +
 +
with select-options:
<pre>
<pre>
-
rpm -q [select-options] [query-options]
+
[PACKAGE_NAME] [-a,--all] [-f,--file FILE]
 +
[-g,--group GROUP] {-p,--package PACKAGE_FILE]
 +
[--fileid MD5] [--hdrid SHA1] [--pkgid MD5] [--tid TID]
 +
[--querybynumber HDRNUM] [--triggeredby PACKAGE_NAME]
 +
[--whatprovides CAPABILITY] [--whatrequires CAPABILITY]
 +
</pre>
 +
and query-options:
 +
<pre>
[--changelog] [-c,--configfiles] [-d,--docfiles]
[--changelog] [-c,--configfiles] [-d,--docfiles]
[--dump] [--filesbypkg]
[--dump] [--filesbypkg]

Revision as of 20:28, 18 September 2008

create a RPM archive from a running setup using the checkinstall tool:

./configure

make

/usr/sbin/checkinstall [make install / setup.sh / ...]

# answer some questions to fill the RPM headers...


Installing packages:

rpm {-i|-U|-F} [install-options] PACKAGE_FILE ...


Removing packages:

rpm -e [--allmatches] [--nodeps] [--noscripts] [--notriggers] [--repackage] [--test] PACKAGE_NAME ...


Querying package contents:

rpm -q [select-options] [query-options]

with select-options:

[PACKAGE_NAME] [-a,--all] [-f,--file FILE]
[-g,--group GROUP] {-p,--package PACKAGE_FILE]
[--fileid MD5] [--hdrid SHA1] [--pkgid MD5] [--tid TID]
[--querybynumber HDRNUM] [--triggeredby PACKAGE_NAME]
[--whatprovides CAPABILITY] [--whatrequires CAPABILITY]

and query-options:

[--changelog] [-c,--configfiles] [-d,--docfiles]
[--dump] [--filesbypkg]
[-i,--info] [--last] [-l,--list]
[--provides] [--qf,--queryformat QUERYFMT] [-R,--requires]
[--scripts] [-s,--state] [--triggers,--triggerscripts]
Personal tools