Month: March 2010

Extract the contents of an RPM

Using rpm2cpio command, the contents of an RPM package can be extracted without having to install the package. For source RPMs too this command can be used. This is illustrated with an example as follows, where we extract the contents of RPM, google-chrome-beta_current_i386.rpm. $ rpm2cpio google-chrome-beta_current_i386.rpm | cpio -idv ./etc/cron.daily ./etc/cron.daily/google-chrome ./opt/google/chrome ./opt/google/chrome/chrome ./opt/google/chrome/chrome-sandbox ./opt/google/chrome/chrome.pak […]

Continue Reading

Nagios Installation and Configuration

Nagios Installation in Ubuntu Required Packages Install the following packages on  Ubuntu before continuing. Apache 2 PHP GCC compiler and development libraries GD development libraries If not installed, using apt-get the above packages can be installed as follows sudo apt-get install apache2 sudo apt-get install libapache2-mod-php5 sudo apt-get install build-essential sudo apt-get install libgd2-xpm-dev Create […]

Continue Reading

Memory Usage in Linux

Check the memory usage on a linux system with the command given below. The free command helps in getting the memory usage  in the system [rams@stopprepare-lx ~]$ free -m total       used       free     shared    buffers     cached Mem: 1002        985         17          0         93        380 -/+ buffers/cache: 512        490 Swap: 2055          0       2055 Total Memory in the system […]

Continue Reading