Link to home
Start Free TrialLog in
Avatar of CipherUser
CipherUser

asked on

Yum install from text file not working

RHEL 6.3 - No RHN subscription.   I am trying to install packages from a local repo created from the mounted DVD.  

# yum repolist shows the repo listed correctly

I have a text file with a list of the packages I need to install.  I ran the following command to install each of the listed packages:

yum -y install $(cat yumtest.txt)

All the packages show as "available", but nothing actually installs (See screenshot).  I was able to get this to work successfully once in the past, but can't figure out why it no longer works.  The result from the command is "Nothing to do"

If I try and run yum once for each package manually, the packages install correctly.

Any ideas would be appreciated.

Thanks!
yumtest.txt
yum.jpg
Avatar of gheist
gheist
Flag of Belgium image

That is illegal according to redhat.
Legal is to configure CentOS or Oracle public-yum repos and convert to free system
Avatar of CipherUser
CipherUser

ASKER

Updating packages off of the RHEL install DVD using yum is illegal?  I'm not trying to get updates.  I'm just trying to add some packages that didn't get installed during the initial GUI installation.
Redhat licence mentions it is to be used only with valid subscription.
CentOS and Oracle Linux does not have such ripoffs hidden between lines.
Since you are installing Oracle DBMS requirements I see no sane reason of not using Oracle Linux 6.6
I'm aware that there are other variants/flavors of Linux that would make this a non-issue, but using RHEL is the only option in this test/dev scenario.   Does anyone have an answer to my original question about why using YUM to install from a text file isn't working?

gheist - I appreciate your feedback, but it's not addressing my question.  Can you suggest an easy way to install multiple packages from the original DVD after the original installation has been completed, preferably from the CLI?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try this:

cat yumtest.txt | while read mypkg
do
    yum -y install $mypkg
done
So pay up your  policy. No Idea why you dont want developer subscription, but instead choose to misappropriate copyrighted software.
RHEL Developer subscription costs 99$/year, EUS 300$/year AUS 500$/year
And you need latest because of your love of old versions.
The solution, though helpful, never addressed my original question.