CONVERT TAR.GZ TO RPM ON CENTOS

There are 2 ways to convert tar.gz to rpm:

  1. alien
  2. checkinstall

Convert tar.gz using alien :

  1. Install alien on centosDownload alien from site currently the best place to download the tarball is from http://packages.debian.org/unstable/source/alien
  2. Extract tarball and install
    #tar -zxvf alien_8.88.tar.gz
    #cd alien#perl Makefile.PL
    #make
    #make install
    #cd ..
  3. Let’s check alien is working or not
    #alien –to-rpm alien_8.88.tar.gz
    Note: Please check help of alien (e.g. alien –help)

Convert tar.gz using checkinstall:

  1. Install checkinstall on centosDownload rpmforge-release from http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
  2. Follow the installation steps
    #yum repolist
  3. Install checkinstall
    #yum install checkinstall
  4. Then unpack your source package and cd to the directory where you unpacked the tar.gz file.
  5. Run the following two commands:
    #./configure
    #make

But now instead of running make install you run checkinstall.
Answer the questions, edit some values if they are not appropriate and let the program run.
When finished, you’ll find your uninstalled RPM in /usr/src/packages/RPMS/i686Your .rpm file is ready for future use!

Advertisements
Posted in Linux
One comment on “CONVERT TAR.GZ TO RPM ON CENTOS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: