Showing posts with label Repository. Show all posts
Showing posts with label Repository. Show all posts

Tuesday, January 3, 2017

Creating a Local Directory Repository to act like a local media for CentOS 6

Just say you wants a local Directory Repository to act like a local media. This happens when you wish to do yum local install from a directory of RPMs only instead of pulling directly from Internet repository.

1. At /etc/yum.repos.d/, create a local repo, something like

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

2. Inside the /etc/yum.repos.d/local.repo,

[myrepo]
name=My Local Repo
baseurl=file:///home/user1/RPM
enabled=1
gpgcheck=0

One more thing you may want to know is that the RPMs from the CentOS Disks including repomd.xml be copied into /home/user1/RPM

3. Disabled the rest of the Repo. For example,
# yum-config-manager --disable rpmforge

4. The Yum will pull from the enabled Repository only.

Sunday, February 10, 2013

Useful Repositories for CentOS 5


RPMForge - This repository is a collaboration of Dag
i386
# wget
http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
x86_64
# wget
http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm



Extra Packages for Enterprise Linux Repository (EPEL)
Architecture-independent
# wget 
http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm



IUS Community Repository -
IUS is a new third party repo for RHEL that provides the "latest upstream versions of PHP, Python, MySQL.

# wget
http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm

For a full-listing, see

Thursday, March 15, 2012

Yum cannot retrieve repository metadata for CentOS 5

If you encountered this type of errors, do look at your repo configuration at /etc/yum.repos.d. In my situation, I was trying to update a package which falls under Centos-Base.repo

http://mirror.centos.org/centos/5/addons/x86_64/repodata/repomd.xml: [Errno 12] 
Timeout: 
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: 
addons. Please verify its path and try again


http://mirror.centos.org/centos/5/addons/x86_64/repodata/primary.sqlite.bz2: 
[Errno 12] Timeout: Trying other mirror.
http://mirror.centos.org/centos/5/addons/x86_64/repodata/primary.sqlite.bz2: 
Errno 12] Timeout: Trying other mirror.
Error: failure: repodata/primary.sqlite.bz2 from addons: 
[Errno 256] No more mirrors to try.
 

3 things you need to do
  1. Check that your mirriorlist in /etc/yum.repo.d is uncommented. It should look something like
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
  2. Check that your baseurl is uncommented. (Usually this is not needed, but this is a last resort
    baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  3. Type the parameter in the repo list
    enabled=1


Saturday, September 10, 2011

rpm needed for blas, blacs, scalapack for CentOS

If you are installing blas, blacs, scalapack in CentOS manually, you will need these packages.

mpi-selector-1.0.2-1.el5.noarch.rpm
libgfortran-4.1.2-50.el5.x86_64.rpm
lapack-3.0-37.el5.x86_64.rpm
lam-7.1.2-14.el5.x86_64.rpm
lam-libs-7.1.2-14.el5.x86_64.rpm
blacs-1.1-24.el5.1.x86_64.rpm           [EPEL] 
blacs-devel-1.1-24.el5.1.x86_64.rpm [EPEL]
blas-3.0-37.el5.x86_64.rpm             
blas-devel-3.0-37.el5.x86_64.rpm  
scalapack-1.7.5-1.el5.x86_64.rpm    [EPEL]

Of course if you use yum install, that will be more efficient. You will need EPEL and the standard repository from CentOS

Wednesday, July 14, 2010

Install Graphviz on CentOS and Fedora

Graphviz is open source graph visualization software.


Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. Automatic graph drawing has many important applications in software engineering, database and web design, networking, and in visual interfaces for many other domains.

To install GraphViz, download the correct repository according to the distribution of your choice. The supported distribution is Fedora, RHEL, Ubuntu, Windows, Mac

The easiest way to install and maintain graphviz on RHEL or Centos is to use yum. To set up yum, download the graphviz-rhel.repo file

To install  Graphviz,
# yum install graphviz*

Monday, June 8, 2009

rpm.livna.org Repository

rpm.livna.org, a repository of add-on RPM packages for Fedora as well as RHEL (version 5 and later) and its compatible derivates like CentOS.

In 2008 rpm.livna.org merged with two other package repositories into RPM Fusion. All packages have been moved there except one that RPM Fusion for various reasons didn't want to take.

# wget http://rpm.livna.org/livna-release.rpm
# rpm -Uvh livna-release.rpm

RPM Fusion Repository

RPM Fusion is a merger of Dribble, Freshrpms, and Livna; our goal is to simplify end-user experience by grouping as much add-on software as possible in a single location.

Step 1:
You need to enable EPEL on RHEL5 or compatible distributions like CentOS before you enable RPM Fusion for EL.

Step 2: Download and install rpm package for CentOS
# wget
RPM Fusion free for RHEL5 or compatible like CentOS
RPM Fusion nonfree for RHEL5 or compatible like CentOS

For more information for Fedora and the above information, go to RPM Fusion Configuration

Wednesday, May 27, 2009

Creating a Yum Local Repository at CentOS

Sometimes, you may want a yum local repository for your CentOS 5 Server as yum automatically resolve all the dependency, With a local repo as a resource it will help resolve potential dependencies especially if you do not have internet access

Step 1: You will need an utility, named createrepo.
# yum install createrepo Or
# rpm -Uvh createrepo-0.4.11-3.el5.noarch.rpm

Step 2: Copy the whole CentOS CD to a directory (E.g. /install/centos5.2/x86_64/CentOS)

Step 3: Createrepo
# createrepo /install/centos5.2/x86_64/CentOS
(you will need to run the above command again, so that the repository metadata gets updated)

Step 4: Create a local-repo file
(You may want to remove CentOS-Base.repo, CentOS-Media.repo if you are not connected to network)
# touch install-local.repo


Type the followings:
[localrepo]
name=CentOS $releasever - My Local Repo
baseurl=file:///install/centos5.2/x86_64/

enabled=1
gpgcheck=0
gpgkey=file:///install/centos5.2/x86_64/RPM-GPG-KEY



Further Information:
  1. Local YUM Repository by George Notaras
  2. Docs/Drafts/SoftwareManagementGuide from Fedora

Monday, March 16, 2009

Installing RPMForge

RPMForge is a collaboration of Dag, Dries, and other packagers. They provide over 2600 packages for CentOS, including mplayer, xmms-mp3, and other popular media tools. It is not part of RedHat or CentOS but is designed to work with these major distributions.
This Repository is definitely something you will not want to miss out

For CentOS 5 (summary)
# yum install yum-priorities
(x86_64)
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
(i386)
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
# rpm -ivh rpmforge-release-0.5*.rpm
# yum check-update


For CentOS 4 (summary)
# yum install yum-plugin-priorities
(x86_64)
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el4.rf.x86_64.rpm
(i386)
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el4.rf.i386.rpm
rpm -ivh rpmforge-release-0.5*.rpm
# yum check-update

For more information, read go to http://rpmrepo.org/RPMforge/

Wednesday, December 17, 2008

Red Hat Enterprise Linux / CentOS 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.
To enable EPEL for CentOS 5
For 32-bits
# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
For 64-bits
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
To enable EPEL for CentOS 4For 32-bits
# wget http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-10.noarch.rpm
For 64-bits
# wget http://download.fedora.redhat.com/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm