By default, in RHEL, nscd is configured to have a persistent cache – one that is “stored on the disk and therefore survive[s] a nscd restart or e.g. machine reboot” according to the nscd.conf man page.
To flush the cache, you must run nscd with the “-i” flag instead of simply restarting it:
sudo [...]
Steps for creating an XFS partition on /dev/sdc which encompasses the entire disk. (LVM is not used in this example. Post written using Scientific Linux 5.3, but should be relevant to any RHEL clone with XFS support.)
Partition the disk using fdisk; we want the standard Linux partition id of “83″, so no need [...]
Also filed in
|
|
If you want to inspect files in an RPM without installing it, use rpm2cpio piped to cpio:
rpm2cpio file.rpm | cpio -id
Note that this will create a (local) directory tree under which the extracted files will be placed. In other words, expect the files to be extracted under a newly created “usr” directory or similar.
Also filed in
|
Tagged rpm
|
For errors similar to these:
rpmdb: Program version 4.2 doesn’t match environment version
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 – Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
Do this:
# rm -f /var/lib/rpm/__*
Also filed in
|
Tagged rpm
|