Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a large number of packages which I want to install in Fedora 20. How can I install packages satisfying dependencies only?( I'm not connected to internet while installing)

share|improve this question
    
Do you have all the packages located somewhere local? –  slm Feb 23 at 7:55
    
yes I have them located in a folder –  M.Tarun Feb 23 at 8:42
    
What do you mean by the phrase: "How can I install packages satisfying dependencies only?" –  slm Feb 23 at 8:49
    
I attempted to A but I'm not 100% on what exactly it is you want. Let me know if that's it, if not I can adjust accordingly. –  slm Feb 23 at 8:53
    
I mean that I want to install those packages which satisfy dependencies –  M.Tarun Feb 23 at 9:04

2 Answers 2

If you have everything you need locally you can either install with:

$ sudo rpm -ivh *

-or-

$ sudo yum --nogpgcheck localinstall *
share|improve this answer

There is no simple way of doing this. You can use repoquery to find the full dependencies for the given package. This would need to be checked against the installed packages (better try to update to the versions suggested), and use yum --downloadonly --downloaddir=... ... (or even grabbing the relevant packages from a mirror directly) to get them.

If you don't have a Fedora 20 at hand at the downloading end, you'll be in a world of hurt... perhaps the best course of action in that case would be to download a full installation DVD image (check the formats page for the DVD edition with all packages for your architecture) and use that as the source to install. Instructions filched from here mount the DVD image on /mnt/F19_ISO, set up a repository copying the following to /etc/yum.repos.d/fedora-dvd.repo:

[fedora-dvd]
name=Fedora DVD $releasever – $basearch
failovermethod=priority
baseurl=file:///mnt/F19_ISO/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

After that you can install stuff by yum --disablerepo=* --enablerepo=fedora-dvd install <packagenames>

Only downside is that this will get you only what was on the original install, no updates. A way out is to use revisor to create your own installation media with updates (see an older walkthrough of the process), and then proceed as above.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.