Saturday, August 08, 2009

Linux Fedora yum

Adding third-party repositories to apt and yum configuration files

The following instructions are for Fedora Core 1.

1. Download and install the apt and yum packages from freshrpms.net. Alternatively, you may install the yum.conf and sources.list files from freshrpms.net if you already have apt and yum installed.

http://freshrpms.net/packages/builds/yum/yum-fd.conf (save this as /etc/yum.conf)
http://freshrpms.net/packages/builds/apt/sources.list.i386 (save this as /etc/apt/sources.list)

2. Add third-party repositories to yum and apt configuration files.

/etc/yum.conf additional entries:

[DAG]
name=Dag APT Repository
baseurl=http://apt.sw.be/redhat/fc$releasever/en/$basearch/dag

[NewRPMS]
name=Fedora Core 1 NewRPMS.sunsite.dk
baseurl=http://newrpms.sunsite.dk/apt/redhat/en/i386/fc1

[ATrpms]
name=Fedora Core 1 ATrpms testing
baseurl=http://apt.physik.fu-berlin.de/fedora/1/en/i386/at-testing

[Dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://dries.studentenweb.org/yum/fedora/linux/$releasever/$basearch/dries

/etc/apt/sources.list additional entries:

# DAG
rpm http://apt.sw.be redhat/fc1/en/i386 dag

# NewRPMS
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms
#rpm-src http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms

# ATrpms
rpm http://apt.physik.fu-berlin.de fedora/1/en/i386 at-stable
#rpm-src http://apt.physik.fu-berlin.de fedora/1/en/i386 at-stable

# Dries
rpm http://dries.studentenweb.org apt/fedora/fc1/i386 dries
#rpm-src http://dries.studentenweb.org apt/fedora/fc1/i386 dries

3. Update the package lists.
apt-get update
yum update (this step will take a while as yum downloads a header file for each new package)

The 5 third-party repositories listed above are now available with yum and apt.

New users may wish to install the excellent GUI front-end to apt named synaptic with the following command:
yum -y install synaptic
-- or --
apt-get -y install synaptic

If you would like to automatically update your system nightly with the latest package updates, enable the yum service:
/sbin/chkconfig --add yum
/sbin/service yum start

No comments:

PostgreSQL json fields

select name->'es_PE',* from product_template where name->>'es_PE' like '%MEGACI%'   References: [1] https:/...