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.

In order to install a copy of fedora system i want to know how to install packages

previously listed with yum --list installed>mypkglist I like do the task in batch mode.

share|improve this question
add comment

2 Answers

Do this on the other machine, which would read the list and send it to yum,

yum install $(<mypkglist)

share|improve this answer
2  
Just do yum -y install --skip-broken ... so it doesn't ask if it should go ahead, and doesn't just exit if there is some conflict. –  vonbrand Mar 2 '13 at 15:17
add comment

The best way to do this is:

yum-debug-dump
yum-debug-restore

...you can also get all the transactions you performed (Eg. via. yum history) and then use "yum load-transaction".

If you have just a list of package, the best thing is probably to prepend "install" in front of them and pass them to "yum shell" (need to add "run" to the end).

There are also fast versions of install like "install-n" (name only match), which are useful when installing 100s of packages (or more).

share|improve this answer
add comment

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.