LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Is there an Apt-Offline alternative for use with Yum? (https://www.linuxquestions.org/questions/linux-software-2/is-there-an-apt-offline-alternative-for-use-with-yum-4175445049/)

Troop116rules 01-10-2013 04:12 PM

Is there an Apt-Offline alternative for use with Yum?
 
I am interested in finding a package or some source code that would allow me functionality like Apt-Offline, but for Yum.

See here for an explanation of what Apt-Offline does, if you don't know.

Google turned up with results that were irrelevant to my question, so I thought I'd ask.

Thanks in advance.

chrism01 01-11-2013 02:10 AM

What I would do is use the repo definition that uses the Install media.
On Centos its /etc/yum.repos.d/CentOS-Media.repo and the content is
Code:

# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
#  CentOS-6.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c6-media [command]

# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c6-media [command]
 
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Obviously you'd have to set enabled=1

Other yum based systems should have an equivalent, or you can just copy this one & amend as required.


All times are GMT -5. The time now is 01:37 PM.