Showing posts with label repository. Show all posts
Showing posts with label repository. Show all posts

Tuesday, January 5, 2010

Creating DVD repository for own system or server

1st Mount RHEL5 dvd

1)check :

#rpm -qa | grep vsftpd

-if /var/ftp directory didn't there means install

#rpm -ivh /media/RHEL5/Server/vsftpd* ( this is location of file in mounted dvd )


2) check :

#rpm -qa | grep createrepo

-if createrepo command not installed means install

#rpm -ivh /media/RHEL5/Server/createrepo* ( this is location of file in mounted dvd )


3)Copy dvd/cd files to pub:

#cp -avf /media/RHEL/* /var/ftp/pub/


4)copy grouping files:

#cp /var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml /root

#cp /var/ftp/pub/VT/repodata/comps-rhel5-vt.xml /root


5)clear the old repos:

#rm -rf /var/ftp/pub/Server/repodata

#rm -rf /var/ftp/pub/VT/repodata


6)repo creation:

#createrepo -g /root/comps-rhel5-server-core.xml -v /var/ftp/pub/Server

#createrepo -g /root/comps-rhel5-vt.xml -v /var/ftp/pub/VT


7) create a file called :

for server:

#vim /etc/yum.repos.d/server1.repo

[Server]

name=Server1 Server Repository

baseurl=file:///var/ftp/pub/Server

gpgcheck=0

#This one is needed for xen packages

[VT]

name=Server1 VT Repository

baseurl=file:///var/ftp/pub/VT

gpgcheck=0


for client:

#vim /etc/yum.repos.d/client.repo

[Server]

name=Server1 Server Repository

baseurl=ftp://192.168.0.254/pub/Server

gpgcheck=0

# This one is needed for xen packages

[VT]

name=Server1 VT Repository

baseurl=ftp://192.168.0.254/pub/VT

gpgcheck=0


8) checking

#yum clean all

#yum install

Red Hat Enterprise Linux Enable rpm fusion Repository

Installing Free and Non free Repositories
We have two separate software repositories:

  • free for Open Source Software (as defined by the Fedora Licensing Guidelines) which the Fedora project cannot ship due to other reasons

  • nonfree for redistributable software that is not Open Source Software (as defined by the Fedora Licensing Guidelines); this includes software with publicly available source-code that has "no commercial use"-like restrictions
Download following file and install for free rpm fusion repository :

http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm

Download following file and install for non free rpm fusion repository :

http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm


Installing free and non free rpm fusion

#rpm -ivh rpmfusion-free-release-5-0.1.noarch.rpm

#rpm -ivh rpmfusion-nonfree-release-5-0.1.noarch.rpm

#yum repolist

-- for update repository list


Important notes



  • You need to enable EPEL on RHEL5 or compatible distributions like CentOS before you enable RPM Fusion for EL.
  • The RPM Fusion for EL repositories are still in the early testing stages; hence you (for now) need to enable epel-testing as well, as some of the RPM Fusion packages depend on packages that are currently in epel-testing.

  • All users that used Freshrpms or Livna installed properly (e.g. by installing one of their foo-release packages) got RPM Fusion free and nonfree repositories enabled automatically.

Red Hat Enterprise Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository

EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux.
EPEL provide lots of packages for CentOS / RHEL, It is not part of RedHat or CentOS but is designed to work with these major distributions. Please note that EPEL only provides free and open source software unencumbered by patents or any legal issues. In short you will not find mp3, dvd and music / media player under EPEL. However, you will find many programs related to networking, monitoring, sys admin, programming and so on.
Packages are supplied in RPM format and in most cases are ready to use. Beware that some packages may break something and you should not blindly install those packages.

How do I enable EPEL?

Simply type the following command as root user:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
List new repo:
# yum repolist
Sample output:
Loading "skip-broken" plugin
Loading "fastestmirror" plugin
repo id              repo name                                 status
addons               CentOS-5 - Addons                         enabled
base                 CentOS-5 - Base                           enabled
epel                 Extra Packages for Enterprise Linux 5 -   enabled
extras               CentOS-5 - Extras                         enabled
updates              CentOS-5 - Updates                        enabled

Once installed use yum command to list, view and install the packages:

# yum search package-name

# yum install package-name

source: http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/

Monday, January 4, 2010

RPM FORGE repository for RHEL 5

This is simple method of creating repositories with rpmforge

#wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

-- this step is used to get rpmforge-release-0.3.6-1.el5.rf.i386.rpm package.

#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

-- this step used to install pmforge-release-0.3.6-1.el5.rf.i386.rpm package

#yum repolist

-- this step update repository list in your machine

----------------------------------------------------------------------------------------

You can find your rpmforge packages here   http://packages.sw.be/rpmforge-release/