LINUX and STUFF

All about linux inside, networking, programming,server,tutorials, Open Source resources software and hardware and the other stuff.

Monday, January 30, 2006

Installation OpenSource Packet on Linux

Differ from Windows which software installation process just click next and next then the installation finish, in Linux we will have to get acquainted with package manager . One of the popular package manager is Redhat Package Manager ( RPM). Although carry the name of Redhat, but this application is used by many distro for the managerial of package in distro which is is pertinent., some among distro which is use RPM for the management of package is Mandrake, Trustix, Suse.

What is Package Manager?

Package Manager represent a tool assist to handle application in some distro. This is of course differ from software manager which GUI bases in linux. . Analogy for the software manager is utilty like Add/Remove Program which there are in Windows Control Panel while for installing program which we get from internet, we can use Package Manager. In general software packages in internet has the extension tar.bz2, tar.gz,rpm,deb(for Debian distro).

Installation with RedHat Package Manager

The sintax is:
rpm -i package-name.rpm
Another additional option for installation (-i) is
-h, to see installation output.
-v, to see installation progress.

Uninstal/Remove
Sintax :
rpm-e package-name
Ex: #rpm -e ymessenger

Upgrade Package
Sintax :
rpm -Uvh package-name.rpm or rpm -Fvh package-name.rpm

To see installed package
Sintax : rpm -qa
If the output we get to many we can combine with | (pipe) and more : #rpm -qa | more
To see a package with contain a certain words we can use command :
#rpm -qa | grep python (ex.)

To see files contained in a package
Sintaks :
rpm -ql package-name.rpm
Ex: #rpm -ql ymessenger-1.0.4-1.i386.rpm

Package installation with src.rpm extension

Src.rpm package is source package from a RPM package. The contain of src.rpm package is program source. How is the installation of this package? First we need to rebuild the package with sintax : rpm --rebuild package-name.src.rpm. After the rebuild we will have package with *.rpm extension. It's mean that installation process use ordinary sintax : rpm -ivh package-name.rpm

Package installation with tar.bz2 and tar.gz extension

For installation with tar.bz2 and tar.gz extension, you have install C compiler on your system which is have (don't you ?) Next the steps is :
1. Download the package from internet. Recommended site is www.sourforge.net and www.freshmeat.com.
2. Extract that package.
- for tar.gz and tgz use command # tar -zxvf file-name.tar.gz
- for tar.bz2 use command tar -xjvf file-name.tar.bz2
3. After that you have to go to the folder where the package was extracted. For the next three step you must login as root.
4. We have configure that software with sintax :
# ./config or # make config
5. Then compile source program
# make or # make all
6. Last after we've compiled it, we have to install that object.
# make install

ps : all step above not work for all package/software. so before you do that, it's good to read first manual file installation in extract directory, usually the name is INSTALL, README OR MANUAL.

Source from www.ilmukomputer.com
 
Web www.linuxscience.blogspot.com

0 Comments:

Post a Comment

<< Home