LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-05-2005, 08:49 AM   #1
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
Yum / Apt-get


I am trying to move back to Fedora, to gain a better understanding of RPM bassed distros/Red Hat.

In regards to installing software, coming from Debian, I feel in love with apt-get.

Is there a way to add respositories with Yum, so that it functions more like apt-get?

Also, what are the advantages / disadvantages of yum?
 
Old 10-05-2005, 08:54 AM   #2
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
found my own answer

http://www.fedoranews.org/jorge/howto/howto02.shtml
 
Old 10-05-2005, 09:35 PM   #3
shams
Member
 
Registered: Jan 2004
Posts: 400

Rep: Reputation: 30
for apt you should run the apt-update to refresh the cashe but yum do it at start, add the repos to yum.repos.d read this link .
 
Old 10-05-2005, 11:09 PM   #4
big_mac126
Member
 
Registered: Oct 2004
Location: Toronto
Distribution: Fedora Core 4
Posts: 58

Rep: Reputation: 15
apt-get has been deprecated in FC4, as it cant support multilib
 
Old 10-06-2005, 08:12 AM   #5
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
thanks guys!

the only thing i noticed with apt, it seem when i tried load a package (synaptic) there were dependency issues.

however, yum was able to install synaptic. BUT, I got dependecy issues when installing XMMS...

any advice on repositories?
 
Old 10-07-2005, 12:11 PM   #6
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
not that this post has left the 1st page.

but BUMP.



I have followed 'DAG's' repository setup,

but i still see dependency issue with both apt & yum?

any advice FC users?
 
Old 10-07-2005, 12:25 PM   #7
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Which FC are you using? Each FC has its own idiosyncracies with respect to yum/apt configurations.

You can always try the tried-and-true method of Googling a dependency to identify the repo containing it. There is almost always something out there to point you in the right direction.
 
Old 10-07-2005, 01:36 PM   #8
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
ya, its no big deal to install the dependcy packages or what have you.


version FC4

i've used DAG's walk through

would it be because there is not a FC 4 repository listed in this walk through?

http://dag.wieers.com/home-made/apt/FAQ.php

i would just like to have apt running well....


Last edited by mikedeatworld; 10-07-2005 at 01:40 PM.
 
Old 10-07-2005, 04:07 PM   #9
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Yes, you need an FC4 apt-style repo for os, updates and extras.

There is one at freshrpms for FC4 os, updates, extras and (of course) freshrpms: http://ayo.freshrpms.net/fedora/linux/4/

If anyone has run across other apt-style repos for FC4 os and updates, why not add it/them to this post? There are several for specific repos like DAG, but not many for os and updates.

Even the FC mirror I was using for apt-style FC3 os and updates stopped serving them.

Fortunately, it is easy to make your own local apt-style repo following the instructions on the freshrpms site, by using rsync to get the content from a yum-style FC mirror and by then creating the apt base files with genbasedir: http://freshrpms.net/apt/server/
 
Old 10-07-2005, 04:18 PM   #10
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
thanks bro
 
Old 10-10-2005, 07:44 AM   #11
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
Okay, so I decided to work on my synaptic dependcy issues.

I went back and used this walk through:

http://stanton-finley.net/fedora_cor...ion_notes.html

Why when I try to install for example xmms, and mplayer I get the following message:

mplayer:
Depends: libdha.so.1.0
Depends: libfribidi.so.0 but it is not installable

any ideas? this also happens when trying to use synaptic to install xmms

FYI I used this walkthough to add repositiories for both yum and synaptic. could there be a conflict?

Also, this is on a new install.

Last edited by mikedeatworld; 10-10-2005 at 08:27 AM.
 
Old 10-10-2005, 09:41 AM   #12
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Installing xmms with mp3 support is fairly easy to do using the fedora-extras and livna repos.

This one is easier to do with yum, so add the livna repo ( http://rpm.livna.org/configuration.html ) to your yum configuration (and apt sources), import their gpg key and then run yum like this:

yum install xmms*
 
Old 10-10-2005, 09:57 AM   #13
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
yes, installing from xmms from yum was simple and went without incident. i was just using those packages as examples. the depency issues are persistant with other packages as well...with synaptic.

how could i resolve the dependencies issues with synaptic?

yum is fine for some, but it is clear that synaptic (when configured correctly) is superior.


thanks for your advice? where should i look next?

Last edited by mikedeatworld; 10-10-2005 at 10:00 AM.
 
Old 10-10-2005, 12:29 PM   #14
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
There are trivial and nontrivial reasons why yum can resolve some dependencies that apt/synaptic cannot.

----------

One trivial reason would be that apt and yum are not using the same repos.

----------

One nontrivial reason is that apt-get/synaptic will not install/update some rpms, for reasons that are not completely clear. Some packages will only upgrade using “apt-get -f dist-upgrade”, but that works because it will remove essential packages that conflict with the upgrade, which is very, very, very bad! After running a dist-upgrade, you may be left with an installation that is essentially unusable, so read the “remove” list closely before you allow a dist-upgrade to proceed.

It’s mainly because of these behaviors that I do not consider apt to be superior to the FC4 implementation of yum for installing/updating rpms, but apt does seem to do installations/updates much faster than yum does. BTW, yum as implemented in FC4 is far superior to the implementation that was used in FC3.

And that’s why I do automated FC4 updates like this:

apt-get update
apt-get update
apt-get -yf upgrade
yum -y update

There is usually nothing for yum to do. BTW, the double “apt-get update” is to overcome some of the idiosyncrasies of using apt with FC4.

Back to dependencies that apt/synaptic cannot resolve, the easiest thing to do is either to use yum to install/update the unresolved dependencies or to let yum do the whole installation/update. Or said another way, let yum do the heavy lifting.

----------

Sometimes you will run into dependencies that neither yum or apt can resolve, typically when you get circular dependencies between two packages that need to be updated/upgraded. A good example of that is the FC4 conflict between kdelibs and kde-i18n packages. Updating kdelibs by itself using yum will usually overcome that problem, but it’s always a good idea to update/install all conflicting dependencies one-at-a-time.

----------

If you want to try a synaptic-like interface for yum in FC4, install yumex from fedora-extras:

yum install yumex

My only complaint with yumex is that it is a real resource pig. It is the only thing I run that regularly forces the systems to use significant amounts of swap, and I’m talking about systems running between 768MB and 1GB of memory.
 
Old 10-10-2005, 12:49 PM   #15
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
Bro, thanks for the advice and tips!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APT or YUM brianthegreat Fedora 3 11-06-2005 05:57 PM
yum or apt - or both? pingu Fedora 1 04-07-2005 09:01 AM
yum vs apt-get eranb2 Debian 2 02-27-2005 09:26 AM
yum like apt-get pirozzi Fedora 3 12-22-2004 04:29 PM
apt -yum ronss Fedora 6 11-11-2003 07:14 AM


All times are GMT -5. The time now is 08:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration