Package management in Linux is a very much tedious job when compared to Windows systems. Basically if we consider windows it’s very much easy even for LKG student will install the packages(in windows we will call it as software) very much easy main windows software packages are .exe or .bat or .msi or .cab files we will just double click it will install the package for you with minimal system know this is all about windows but coming to Linux it’s somewhat complex procedure to install a package below are some of the example ways you can install the packages.

1. Through shell script

2. .tar.bz2 or .tar.gz files

3. .rpm files

4. .deb files(These are the software packages for Debian flavor of Linux)

5. YUM

In order to install packages in Linux one should have depth and width of full concept then only we can troubleshoot the problems what we faced while installation so coming into the topic directly I have divided this entire document into two parts

One is dealing with basic installation of packages

The second one is building rpm packages for your requirements like say for your architecture (i386,1686 AMD etc)

PART1: Basic rpm package management

Example1: For checking the package is install on your system or not

#rpm -q package name #rpm -q httpd

Example2: For checking what are all the packages installed on your system

#rpm -qa

Here q stands for query and a stands for all

Example3: Installing a package

#rpm -ivh packagename.versionno.arch.rpm

Here I have to explain the above 4 thins

(i)Indicates the package name

(ii)Indicates the version number

(iii)Indicates the architecture type (like i386,i686,i586,i486 etc)

(iv)rpm extension

Example4: Upgrading the package

#rpm -Uvh packagename.versionno.arch.rpm

Example5: Installing a package without dependencies

#rpm -ivh packagename.versionno.arch.rpm –nodeps

Example6: Installing a package when it is not able to install if you want to install it forcefully

#rpm -ivh packagename.versionno.arch.rpm –force

Example7: Installing a package with dependencies

#rpm -ivh packagename.versionno.arch.rpm –aid

These are some basic ways to install the packages in coming post I will discuss some what advanced package management like creating rpm package compilation etc Happy Linux.

The following two tabs change content below.
Mr Surendra Anne is from Vijayawada, Andhra Pradesh, India. He is a Linux/Open source supporter who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. He works as Devops Engineer with Taggle systems, an IOT automatic water metering company, Sydney . You can contact him at surendra (@) linuxnix dot com.