15 Useful RPM Commands for Linux System Administrator

1 Comment

Thought of putting this up long time ago. You can have a quick reference on the most commonly Linux RPM commands I used daily here: -

Install a RPM
rpm -ivh package-name.rpm

Update a RPM
rpm -Uvh package-name.rpm

Remove a RPM
rpm -e package-name.rpm

List contents of installed RPM
rpm -qvl package-name

List contents of a RPM
rpm -qlp package-name

Print information about an installed RPM
rpm -qi package-name

Print information about a RPM
rpm -qpi package-name.rpm

List all installed RPM on your system
rpm -qa

Search for a installed RPM
rpm -qa | grep package-name

Print which package a file belongs to
rpm -qf /path/to/file

Extract files from a RPM into current directory
rpm2cpio package-name.rpm | cpio -idv

List out configuration file(s) for a RPM
rpm -qc package-name

List package dependencies
rpm -qpR package-name.rpm

Integrity check for a installed RPM
rpm -V package-name

Integrity check for a RPM
rpm -Vp package-name.rpm

Please post a comment if you would like to share your opinion on the above commands. Thank you.

Install nginx 0.7.63 from Source in CentOS 5.4 with PHP5 FastCGI Support

No Comments

I am running CentOS 5.4 64-bit VM in XenServer. Please proceed to download the latest stable version nginx 0.7.63. You may read the 0.7 changelog for feature updates and bugfix. You need to download lighttpd 1.4.22 because we are configuring PHP as FastCGI. Let’s start our download as below: -

More

Building a RPM for pptpd 1.3.4 in CentOS 5.3 i386

1 Comment

This post is an extension from my first post of PPTP Server Installation in CentOS 5 whereby the RPM file pptpd-1.3.4-1.rhel5.1.i386.rpm is no longer available in http://poptop.sourceforge.net/yum/stable/packages/ so I decided to share how to build a RPM for pptpd 1.3.4 in CentOS 5.3 i386 distribution. This box I am going to build this RPM is based on XenServer virtual machine (VM) as below: -

CentOS 5.3 i386
kernel-xen-2.6.18-128.el5
ppp-2.4.4-2.el5

More

Setup Postfix to Listen on an Additional SMTP Port

2 Comments

This setup will help you to configure Postfix to listen to an additional SMTP port. This enables your SMTP client to access your Postfix SMTP server using other port number when your ISP is blocking the access to any server listening on SMTP port 25.

1. Edit this file /etc/postfix/master.cf and add an entry like below causes Postfix to listen to port 2525: -

2525 inet n - n - - smtpd

2. Then, restart your Postfix service as below: -

service postfix restart

Note: The above was tested on Postfix 2.3.3-2 in CentOS 5

If you found these helpful, please contribute to help:

Upgrading Citrix XenServer 5.0.0 to 5.5.0

9 Comments

This post will cover an upgrading process from Citrix XenServer 5.0.0 to 5.5.0 only. Let’s get started. Insert the Citrix XenServer 5.5.0 CD into the CD-ROM drive.

More

Older Entries