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? |
|
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 .
|
apt-get has been deprecated in FC4, as it cant support multilib
|
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? |
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? |
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. |
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.... |
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/ |
thanks bro
|
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. |
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* |
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? |
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. |
Bro, thanks for the advice and tips!
|
All times are GMT -5. The time now is 09:26 AM. |