WHAT IS YUM AND HOW TO CONFIGURE YUM IN LINUX.

In this article we are going to learn how to configure yum .

YUM stands for YELLOWDOG UPDATER MODIFIED , is a tool for getting, installing, deleting, querying, and managing Red Hat Enterprise Linux RPM software packages from  Red Hat software repositories, as well as other third-party repositories .Yum (YELLOWDOG UPDATER MODIFIED) is a packet manager that was developed by Duke university to improve the installetion of RPMs. It also allows system administrators to configure a local repository to packages provided by Red Hat.

From where i will be getting RPM Software package, you must read my these two articles 

HOW TO GET A FILE FROM WINDOWS TO LINUX SYSTEM OR TO ANDROID

HOW TO OPEN AN .ISO FILE IN LINUX

  • First we will check where RPM software package is . Then go to that folder . 
[root@localhost ~]# cd /root/Desktop/SERVER/
  • Then we have to edit a file to make yum tool work.
[root@localhost SERVER]# vim /etc/yum.repos.d/a.repo
  • Then press i (to go in insert mode ) and enter the same code but in baseurl provide your folder path, where its located.
[a]
baseurl=file:///root/Desktop/SERVER
gpgcheck=0
  • Then press ESC and :wq (to save and quit)
~
~
:wq
  • Your yum(yellowdog updater modified) is ready to install any rpm file.
  • I’m going to install telnet all rpm file to show you guys how it works.
[root@localhost ~]# yum install telnet*

Loaded plugins: rhnplugin, security
Repository 'a' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Package 1:telnet-0.17-39.el5.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.i386 1:0.17-39.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================
 Package                        Arch                  Version                        Repository          Size
==============================================================================================================
Installing:
 telnet-server                  i386                  1:0.17-39.el5                  a                   35 k
Transaction Summary
==============================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 35 k
Is this ok [y/N]:
  • It will calculate all telnet file size and ask you whether you want to install it or not . Press  y .
Is this ok [y/N]: y
  • Within few seconds all your telnet rpm file will be downloaded.
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : telnet-server                                                                          1/1
Installed:
  telnet-server.i386 1:0.17-39.el5
Complete!
  • Let’s try to install one more rpm set file .
[root@localhost ~]# yum install mysql*
Loaded plugins: rhnplugin, security
Repository 'a' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Package mysql-devel-5.0.77-3.el5.i386 already installed and latest version
Package mysql-bench-5.0.77-3.el5.i386 already installed and latest version
Package mysql-server-5.0.77-3.el5.i386 already installed and latest version
Package mysql-test-5.0.77-3.el5.i386 already installed and latest version
Package mysql-5.0.77-3.el5.i386 already installed and latest version
Package mysql-connector-odbc-3.51.26r1127-1.el5.i386 already installed and latest version
Nothing to do
  • Its showing it’s already been installed by admin.
  • I’m gonna try it with other rpm file .
[root@localhost ~]# yum install nmap*
Loaded plugins: rhnplugin, security
Repository 'a' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nmap.i386 2:4.11-1.1 set to be updated
---> Package nmap-frontend.i386 2:4.11-1.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================
 Package                        Arch                  Version                        Repository          Size
==============================================================================================================
Installing:
 nmap                           i386                  2:4.11-1.1                     a                  671 k
 nmap-frontend                  i386                  2:4.11-1.1                     a                   41 k
Transaction Summary
==============================================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 712 k
Is this ok [y/N]: y
  • Again it’s asking whether you wanna download it or not after calculating file size . So press y and hit enter button.
==============================================================================================================
 Package                        Arch                  Version                        Repository          Size
==============================================================================================================
Installing:
 nmap                           i386                  2:4.11-1.1                     a                  671 k
 nmap-frontend                  i386                  2:4.11-1.1                     a                   41 k
Transaction Summary
==============================================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 712 k
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------------------------------------
Total                                                                         343 MB/s | 712 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : nmap                                                                                   1/2
  Installing     : nmap-frontend                                                                          2/2
Installed:
  nmap.i386 2:4.11-1.1                              nmap-frontend.i386 2:4.11-1.1
Complete!
  • It will download in few seconds .

So this is how you can configure YUM .

HOW TO COMBINE FILES IN A SINGLE FILE AND HOW TO COMPRESS FILE IN LINUX

HOW TO BREAK FILE INTO MANY FILES TO SECURE YOUR DATA IN LINUX

HOW TO INCREASE VG(VOLUME GROUP) SIZE IN LINUX

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