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.

Is there any way for yum to install only that packages, that doesn't have any dependencies? I'm trying to install all python2 libraries. The code:

su -c 'yum install python-\*'

And I've get (ignore that one broken package):

Install                        730 Packages (+257 Dependent packages)
Skipped (dependency problems)    1 Package

But I want install only python2-libraries that didn't have dependencies.

share|improve this question
    
Why do you want to install packages without their dependencies? Or am I understanding wrong? –  vonbrand Jan 24 '13 at 23:55
    
For example I want install only the Python libraries and not the software the libraries that used other software. –  m0nhawk Jan 25 '13 at 5:31

1 Answer 1

up vote 3 down vote accepted

Possible solution:

Installing yum-plugin-downloadonly:

su -c 'yum install yum-plugin-downloadonly'

Downloading all python2 and python3 libraries (make sure /tmp/cache exists):

su -c 'yum --downloadonly --downloaddir=/tmp/cache install python-\* python3-\*'

cd /tmp/cache and remove all unneeded packages - rm !(python*.rpm). Finally, install all packages:

su -c 'yum --disablerepo=* --skip-broken install \*.rpm'

This will install all packages that have dependencies due to no repository available with additional packages.

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.