Saturday, April 24, 2010

LINUX: RPM packages

Installing an RPM is rather simple (if the dependencies aren't a problem). Simply type:
rpm -i <package>.rpm

However, you may want to see what scripts are going to be run prior to running it. Or even after, if you want to know where things were installed, you can get that information by typing:
rpm -q -i -l --scripts -p <packagename>.rpm
rpm -q -i -l --scripts <installed name>

The only difference between the above 2 commands is the first one is run against the rpm and can be used prior to installation, while the second one can be run on an installed package and does not need the original rpm.

No comments:

Post a Comment