Linux-Solutions :Software Package Installation in Redhat like Linux Systems.

Software Package Installation in Redhat like Linux Systems.
---------------------------------------------------------------------------------
This Post teaches Users How to install software packages in some yum or rpm based pakage manager system
There are Three ways for installing software packages. My series will take you from easier to harder one.
1> The Great RPM extension
a) Search the [dot]rpm package in the internet and download it to your localsystem
b) Either double click the [dot]rpm package which will automatically install the package.
or
Learn Some rpm command
-----------------------
syntax: rpm [options] < package-full-name >
eg. rpm -i httpd-2.2.17-10.fc15.1.i686.rpm
Options
--------
-i install
-v vorbose mode on (Tells what is going on inside)
-h hash (displays hash symbol as progress bar).
-q query tha package whether it is installed
-U update the package
Examples
--------
To install package (rpm file)
[root@xnimbus ~]#rpm -ivh < rpmfile >
To Upgrade if installed or to install if not installed.
[root@xnimbus ~]#rpm -Uvh < rpmfile >
To upgrade only if installed
[root@xnimbus ~]#rpm -Fvh < rpmfile >
To remove installed package
[root@xnimbus ~]#rpm -e <packagename >
To query rpm database
------------------------------
1. [root@xnimbus ~]#rpm -qa <ENTER> ==> Query all installed packages.
i.e. Displays the list of all
installed packages.
2. [root@xnimbus ~]#rpm -q < packagename > ==> Query for specified package only.
3. [root@xnimbus ~]#rpm -ql <packagename > ==> Displays the list of files
installed by the package.
4. [root@xnimbus ~]#rpm -qf <filename > ==> Displays the name of package by
which the file was installed.
2> Using The Repo
-------------------------------------------
There is a lot of trouble installing software in linux just by using rpm like backend tools due to dependency of one package to another and to next. sometimes may lead to 100's of package dependency .For the solution we simply use yum package manager for software/package installagtion.
Since this article is made for beginner users I 'll not deal with making a repo.Easy task is just install the repo data.I am using ftp rpmfusion because it has enough packages in its database
a> install repo
You can install repo by downloading repo files from http://rpmfusion.org/Configuration/
(simply download and click it )
OR run the command given to download in the terminal using root previlage. For fedora 15 it goes
[root@xnimbus ~]#yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable... http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-...
b>run the command
now you can run yum command for package installation
Examples
i> [root@xnimbus ~]#yum install httpd -->[to install ]
ii>[root@xnimbus ~]#yum remove php -->[to remove package]
iii>[root@xnimbus ~]#yum update mysql-server -->[to update package]
iv>[root@xnimbus ~]# yum list [package name] -->[list all package available]
c> Or open add/remove software in gui and search for the software and install.
3> Running other general linux packages
this packages are easier then all of other to install.
a> Download package that may be in any extension
b> Change the mod to execute as
[root@xnimbus ~]#chmod +x < packagename with full path >
c> Execute
[root@xnimbus ~]#./< package name with full path >
Thats all for today will be posting soon. Happy Posting ;)
- xnimbus's blog
- Login or register to post comments
Who's new
- xraj_143
- rajendra regmi
- mahesh
- prayaspoudel
- hari123
