Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

yum install $(<mypkglist)

share|improve this answer
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

The best way to do this is:


...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

Your Answer


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.