LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   yum like apt-get (https://www.linuxquestions.org/questions/fedora-35/yum-like-apt-get-267382/)

pirozzi 12-17-2004 08:15 AM

yum like apt-get
 
i've used for a while a machine with dabian and i've found very usefull using apt-get to install packages also from installation cd or separately downloaded. is it possible perform the same with yum or is it designed only for download and istall from the net?

cormander 12-17-2004 09:50 AM

I've never actually done this with a CD, but consider the possibility:

cd into /var/cache/yum and create "cdrom" as a directory. cd into it, and symlink the location of the cd's rpms to "packages". read the yum-arch manpage and create the headers for the rpms.

Then, do a yum install of the packages, and tell yum to operate entirely from cache. It should see the cd's rpms there, be able to read the headers you generated, and install them.

You may have to add an entry for cdrom in your yum.conf file, but I'm not sure.

Give it a shot and let us know.

-Corey

misc 12-22-2004 04:09 PM

Instead of re-using Yum's cache directory, you can create a local repository with yum-arch (FC2) or createrepo (FC3) everywhere else and point yum to it with baseurl=file:///path instead of baseurl=http:// locations.

drj000 12-22-2004 04:29 PM

Re: yum like apt-get
 
Quote:

Originally posted by pirozzi
i've used for a while a machine with dabian and i've found very usefull using apt-get to install packages also from installation cd or separately downloaded. is it possible perform the same with yum or is it designed only for download and istall from the net?
If you're just installing a single rpm, or just a few, and you want to use yum, you can do yum localinstall file1.rpm [file2.rpm, etc]. That's how I always install my rpms.


All times are GMT -5. The time now is 10:14 AM.