rpm command

Here is a little known secret that allows you to view the change log of a package. Using –changelog option you can find out if particular security bug is fixed or not. This is extremely useful option for production boxes. For example CVE-2007-1864 documents that php has serious buffer overflow in the bundled libxmlrpc library […]

{ 1 comment }

Sometime by mistakes all file permissions get changed and you need to restore file permission. For example a shell script or some sort of corruption could change the permissions for packages (installed files), it may be necessary to reset them. For example a long time ago my shell script run chmod and chown commands on […]

{ 18 comments }

New Linux user often get this error. Let us say you haved downloaded the RPM file from net and saved to /tmp, you may get error – no no such file or directory – when the file is really downloaded and ls command can show the same. Answer is pretty simple rpm command needs the […]

{ 2 comments }

If rpm / yum command hangs during operations or you see error messages – it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database: Command to rebuild rpm database rm -f /var/lib/rpm/__db* rpm –rebuilddb Read rpm / yum man pages for more information

{ 7 comments }

How do you install and use rsync to synchronize files and directories from one location (or one server) to another location? – A common question asked by new sys admin.

{ 58 comments }

Installing software from a source code is common practice in UNIX and Linux world. Some time this is preferred method because it gives all power and flexibility you need to optimize your software such as MySQL, PHP, and Apache etc. However, uninstalling files installed from a source code tar ball is a big headache. Two […]

{ 7 comments }