rpm --query --filesbypkg techrx
When I try to load my ssh-key from a remote location I get the message:
Could not open a connection to your authentication agent.
The way to get around this is to load a shell session inside the ssh-agent:
Use the obsoletes tag in the specfile. This will cause “package-oldname” to be uninstalled before installing “package-renamed”.
An example of using dd to create a 1GB file.
dd if=/dev/zero of=testfile bs=1M count=1024
Or alternatively, create a sparse file ( very quick to create, but will lead to fragmentation later)
dd if=/dev/zero of=testfile bs=1M seek=1024 count=0
Large files can be formatted with a file system and mounted:
mkfs.ext3 -F testfile mount -o loop -t ext3 testfile /mnt umount /mnt
SET FOREIGN_KEY_CHECKS = 0;
SET FOREIGN_KEY_CHECKS = 1;
Alexander Stetsenko blog has more info about it.
Not immediately obvious, but if you’re looking for an rpm to install the Apache2::Request module you need perl-libapreq2 (this works in CentOS 5 and I imagine others as well).
yum install perl-libapreq2
YUM reference cheatsheet:
Find out which package includes a given file
yum provides "*/repoquery"
List available repositories
Search by package name (case insensitive)
yum list "*package*"
List files inside a repository package (regardless if that package has been installed, requires the yum-utils to be installed)
repoquery --list <PACKAGE_NAME>