What is RPM? And how can it be used? The RedHat Package Manager can be used to install, uninstall, query and maintain the packages on your RedHat system. There are a few basic commands everyone should know:
There are a lot of rpm commands but one of the most
useful
(not very well documented is)
rpm2cpio | cpio -ivmud
This will rip open a source RPM for the source files, patches, etc
as well as the spec file into the current directory (so you may
want to move into a subdirectory before running).
Perform this command on the Red Hat’s PHP file to see
some
really f*cked way of compiling PHP (in php.spec). 🙂
BTW, to rebuild you need to use the rpmbuild command in
newer Red Hat versions. This is also not very well
documented.
June 12th, 2003 at 5:22 pm
There are a lot of rpm commands but one of the most
useful
(not very well documented is)
This will rip open a source RPM for the source files, patches, etc
as well as the spec file into the current directory (so you may
want to move into a subdirectory before running).
Perform this command on the Red Hat’s PHP file to see
some
really f*cked way of compiling PHP (in php.spec). 🙂
BTW, to rebuild you need to use the rpmbuild command in
newer Red Hat versions. This is also not very well
documented.
June 12th, 2003 at 5:24 pm
rpm2cpio <some source rpm> | cpio -ivmud
(forgot to use the < >)