Yum is a software installation package for Redhat/Fedora/Centos. It offers complete solution with option to update/install or remove a software from a linux machine.
Download and Install Yum if it's not there [Its default in Fedora]
Source[gz]
RPM
Adding a new repository to Yum :
Enter the directory : /etc/yum.repos.d
Create the file with the following data customized to match your repository
[foo]
name=Foo for RHEL/ CentOS $releasever - $basearch
baseurl=http://foo.nixcraft.com/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://foo.nixcraft.com/RPM-GPG-KEY.txt
* [foo] : Repository name i.e. The [main] section must exist for yum to do anything.
* name=Foo for RHEL/ CentOS $releasever - $basearch : A human readable string describing the repository name
* baseurl=http://foo.nixcraft.com/centos/$releasever/$basearch/ : Must be a URL to the directory where the yum repository’s ‘repodata’ directory lives
* enabled=1 : Enabled or disabled repo. To disable the repository temporarily, set the enabled to 0
* gpgcheck=1 : Security feature, use GPG key
* gpgkey=http://foo.nixcraft.com/RPM-GPG-KEY.txt : GPL file location
Also you need to import the gpg key for the repository as follows:
rpm --import http://foo.nixcraft.com/RPM-GPG-KEY.txt
Some Yum commands: yum add [software],yum remove [software],yum update,man yum.. :)
Download and Install Yum if it's not there [Its default in Fedora]
Source[gz]
RPM
Adding a new repository to Yum :
Enter the directory : /etc/yum.repos.d
Create the file with the following data customized to match your repository
[foo]
name=Foo for RHEL/ CentOS $releasever - $basearch
baseurl=http://foo.nixcraft.com/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://foo.nixcraft.com/RPM-GPG-KEY.txt
* [foo] : Repository name i.e. The [main] section must exist for yum to do anything.
* name=Foo for RHEL/ CentOS $releasever - $basearch : A human readable string describing the repository name
* baseurl=http://foo.nixcraft.com/centos/$releasever/$basearch/ : Must be a URL to the directory where the yum repository’s ‘repodata’ directory lives
* enabled=1 : Enabled or disabled repo. To disable the repository temporarily, set the enabled to 0
* gpgcheck=1 : Security feature, use GPG key
* gpgkey=http://foo.nixcraft.com/RPM-GPG-KEY.txt : GPL file location
Also you need to import the gpg key for the repository as follows:
rpm --import http://foo.nixcraft.com/RPM-GPG-KEY.txt
Some Yum commands: yum add [software],yum remove [software],yum update,man yum.. :)
This comment has been removed by a blog administrator.
ReplyDeletegood one!! yummy :P
ReplyDelete