PDA

View Full Version : Yum & DAG RPM Repository


ozgreg
08-11-2005, 02:16 AM
I like WHT but when installing RPM packages I would much rather install them via YUM, which is a simple command-line (root) tool and should already be installed on your VPS (Well it is on mine Fedora I386 Core 2)

Now YUM out of the box has access to a limited set of repositories so the first thing I did was extend YUM to use the excellent DAG repository.

To do this run from root

Step 1.

rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

Step 2.

pico /etc/yum.conf

and insert down the bottom of the file

[dag]
name=Dag RPM Repository for Fedora Core
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

save file and that is it from now on YUM will also search DAG repository for your RPM page.

You can find out heaps more about yum and DAG from Here (http://dag.wieers.com/home-made/apt/FAQ.php#B)

Hvu
08-11-2005, 09:42 AM
Coolios but I like to compile from source (:

Tony
08-11-2005, 10:32 AM
Speaking of which, I have it on my todo list to move our repo over to the dag rsync -- just haven't gotten around to it yet, and need to check a few things for compatibility before I do. I'll let you guys know when it's done though. =)

ozgreg
08-12-2005, 12:47 AM
HVU, you Unix Tech head you :-) My point of view on YUM is why go to the trouble of making something that already exists when you can get YUM to do the work for you :-)

Tony, What a great idea :-)

Tony
08-12-2005, 08:00 AM
speaking of compiling from source and yum.

Stick with one; or the other. Do not mix, even in small quantities. libs tend to get broken easily, and yum is the first to bitch about it.

ozgreg
08-12-2005, 08:48 AM
Tony, excellent point, another reason to stick to yum :-)

asterisk
11-15-2005, 01:07 AM
What an excellent post. Thanks for the tip, ozreg.

Say I just did a yum update with the new DAG repository in yum.conf. Is it normal that the number of installed packages updated with DAG is like a long, long list? I'm just wondering if I've misunderstood what 'yum update' does.

Does this mean that the packages on PowerVPS' repository are not as updated?

Many thanks in advance.

ozgreg
11-16-2005, 05:21 PM
your initial update could take a little while because RH Core 2 has been around for a while now so some of the utilities of this distribution will be a little dated..

asterisk
11-19-2005, 07:30 AM
that's a good point. thanks for the heads up, ozgreg. :)

burk
11-25-2005, 07:11 PM
I was thinking about installing a CRM (vtiger) and it says that it needs Fedora Core 3. Will doing a yum upgrade get me to the equivalent of 3?

Will update also update PHP and mysql (don't really want to upgrade these)?

charles
11-25-2005, 08:02 PM
I was thinking about installing a CRM (vtiger) and it says that it needs Fedora Core 3. Will doing a yum upgrade get me to the equivalent of 3?


I do not recommend trying this - you had better backup your VPS first.

I see no reason why vtiger would need FC3! All it should care about at most are apache/php/mysql which is possibly what it wants upgraded.


Will update also update PHP and mysql (don't really want to upgrade these)?

Probably. It's also likely to break your panel if you have one (assuming it doesn't break the VPS completely).

charles

asterisk
04-21-2006, 06:15 PM
Found this post from ozgreg to be really helpful so thought I may add to this.

You can either add them as ozgreg has pointed out or if your distro allows you to, place them in /etc/yum.repos.d in separately named files of your choice typically dries.repo, dag.repo etc.


[dries]
name=Dries RPM Repository for Fedora - $releasever - $basearch
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/



I'm currently on CentOS so the following repositories are for CentOS.


[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1




[dries]
name=Dries RPM Repository for Red Hat Enterprise Linux 4 - $releasever - $basearch
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el4/en/i386/dries/RPMS
gpgcheck=1
enabled=1



You can import the GPG key for dries as you did for dag in a similar manner to that described at the thread beginning from this URL - http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt