Showing posts with label yum. Show all posts
Showing posts with label yum. Show all posts

Wednesday, November 7, 2012

YUM Configuration fom RHEL 5 Onwards



[root@redhat5 /]# rpm ivh /public/repo/createrepo-0.4.4-2.fc6.noarch.rpm
[root@redhat5 /]# createrepo /public/repo
2179/2179 - libevent-1.1a-3.2.1.i386.rpm                                        m
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@redhat5 ~]# vim /etc/yum.repos.d/rhel-debuginfo.repo
[rhel]
name=RHEL5
baseurl=ftp://192.168.1.5
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[root@redhat5 ~]# yum install xinetd
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
rhel                      100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 751 kB    00:00
################################################## 2178/2178
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for xinetd to pack into transaction set.
xinetd-2.3.14-10.el5.i386 100% |=========================| 7.7 kB    00:00
---> Package xinetd.i386 2:2.3.14-10.el5 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 xinetd                  i386       2:2.3.14-10.el5  rhel              124 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 124 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): xinetd-2.3.14-10.e 100% |=========================| 124 kB    00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186
Importing GPG key 0x37017186 "Red Hat, Inc. (release key) "
Is this ok [y/N]: y
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: xinetd                       ######################### [1/1]

Installed: xinetd.i386 2:2.3.14-10.el5
Complete!

Saturday, November 15, 2008

Using Yum

•Install/Remove /Update
yum install package …..
Yum will check the repository for the package if it finds the package it will install the latest version, pulling in dependencies if needed.
yum remove package ….
Yum will remove the package named by you from your system. If any other package depends on the package then yum will prompt you and gives the option to remove those package too. –yum update package ……
•yum check the repository for the updated version of the package and then install them. If when no package are specified then yum search for updates to all of your currently installed packages.

What yum ?

Development of the RPM cemented the future of linux by greatly simplifying installation of the software. As the operating system became more complex, RPM began to show few weakness, primarily its inability to resolve dependencies.
To solve this problem of dependency resolution and package location, volunteer programmers at duke University developed Yellow dog Update, Modifier or YUM for short.
The yum-*.rpm is required to use yum command

The yum will be working on the repository.
What is repository ?
The repository is the location where the software or rpms are stored.
The repository can be created on any linux box it needs createrepo*.rpm
#createrepo –v directory path (-v verbose )

Ansible Playbook to collect uptime of servers

Hi,  This is to explain how we can write a small playbook to collect uptime of all servers in our environment. We can use our own server l...