RPM

From SkyWiki

(Difference between revisions)
Jump to: navigation, search
(New page: create a RPM archive from a running setup using checkinstall: <pre> ./configure make /usr/sbin/checkinstall [make install] </pre> category:remember)
Line 1: Line 1:
-
create a RPM archive from a running setup using checkinstall:
+
[http://user.cs.tu-berlin.de/~ccorn/software/rpm/build-rpm.de.html create] a [http://linux.die.net/man/8/rpm RPM] archive from a running setup using the checkinstall tool:
<pre>
<pre>
Line 6: Line 6:
make
make
-
/usr/sbin/checkinstall [make install]
+
/usr/sbin/checkinstall [make install / setup.sh / ...]
 +
 
 +
# answer some questions to fill the RPM headers...
 +
</pre>
 +
 
 +
 
 +
Installing packages:
 +
 
 +
<pre>
 +
rpm {-i|-U|-F} [install-options] PACKAGE_FILE ...
 +
</pre>
 +
 
 +
Removing packages:
 +
 
 +
<pre>
 +
rpm -e [--allmatches] [--nodeps] [--noscripts] [--notriggers] [--repackage] [--test] PACKAGE_NAME ...
 +
</pre>
 +
 
 +
 
 +
Querying package contents:
 +
 
 +
<pre>
 +
rpm -q [select-options] [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]
</pre>
</pre>
[[category:remember]]
[[category:remember]]

Revision as of 20:25, 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]

[--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