rpm querying

Print Friendly, PDF & Email

Querying the RPM database is harder than I’d expect.  I was having trouble with cups, and so I thought I’d verify the package, in case some file was missing or had the wrong permissions:

[root@tempest ~] rpm -V cups
.M.......  c /etc/cups/subscriptions.conf
[root@tempest ~]

Okay, so the permissions on that file might be wrong.  What are they supposed to be?  Not so easy to find out.  I finally found the following:

[root@tempest ~] rpm -qvl cups | grep /etc/cups/sub
-rw-r--r--    1 root    lp                          0 Nov  6 06:42 /etc/cups/subscriptions.conf
[root@tempest ~]

and what is that file currently?

[root@tempest cups] ls -l /etc/cups/subscriptions.conf
-rw-r-----. 1 root lp 564 Feb  1 13:36 /etc/cups/subscriptions.conf

Okay, so if I change that, the package will complete verify, right?

[root@tempest cups] ls -l /etc/cups/subscriptions.conf
-rw-r-----. 1 root lp 564 Feb  1 13:36 /etc/cups/subscriptions.conf
[root@tempest cups] chmod 644 !$
chmod 644 /etc/cups/subscriptions.conf
[root@tempest cups] rpm -V cups
[root@tempest cups]

Okay!  Not that that fixed my problem….

About CS SysAdmins

The CS Department System Administrators
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *