Friday, January 18, 2008

HowTo: Display and List Out All Package Files Recently Installed

With a pending project at hand, system admin A installed mod_ssl, and after a while sysad A resigned and left. You take over and found out that mod_ssl was recently installed with a pending configuration job. The mod_ssl is just a new thing for you and your experience. But you need to continue a pending configuration job regarding mod_ssl service.

The problem is, since the package name is just new thing for you, you are not aware of all the files belonging to that new rpm package name, how would you continue the pending job considering those thousand files that exist from the box?

Here's how to accomplish the above task of determining and listing out all files that belonged to a package from Fedora box.

Display and List out Files Belonged to A Package

Given with the example, here's the basic steps to achieve that scenario.

Simply issue the next few commands.

# rpm -qa mod_ssl
brings out the package name
~~~~~~~~~~~~~~~~~~~~~
mod_ssl-2.2.6-3
~~~~~~~~~~~~~~~~~~~~~

Next, identify the package files that was installed from this package name
# rpm -ql mod_ssl-2.2.6-3
lists out all the package files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/etc/httpd/conf.d/ssl.conf
/usr/lib/httpd/modules/mod_ssl.so
/var/cache/mod_ssl
/var/cache/mod_ssl/scache.dir
/var/cache/mod_ssl/scache.pag
/var/cache/mod_ssl/scache.sem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now, you can start creating a backup copy of configuration file before you can continue to work on the pending job handed over to you by previous person doing your current job. At least, you can start on something here.

If you still don't know what to do, might as well check out some do's and dont's with the package.

Enjoy.

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy