Solved

Yum install

Posted on 2014-01-14
5
524 Views
Last Modified: 2014-01-21
I have downloaded 4 rpm's for my Red Hat 6.4 to a private folder(\\folder1\folder2\folder3\rpms. My Red Hat server is on a closed network.  
What command syntax do I use install those specific rpm's for my Red Hat 6.4 server?
0
Comment
Question by:gumball60
5 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 300 total points
ID: 39780088
First cd to the directory where you have your RPMS
rpm -ivh RPMNAME.rpm
0
 

Author Comment

by:gumball60
ID: 39780121
So rpm -ivh RPMNAME.rpm will perform/install the selected rpm's like yum?
0
 
LVL 31

Expert Comment

by:farzanj
ID: 39780132
It will install RPMs.

Replace RPMNAME.rpm with the name of actual RPM that you have.

It installs RPMS but unlike YUM, it doesn't resolve dependencies.  Yum has the capability of finding the dependencies and then installing those dependencies as well.
0
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 70 total points
ID: 39780137
yes they both will
the difference is, rpm will just fail if there are dependencies that don't exist while yum will detect the dependencies and attempt to install from whatever repository is configured
assuming dependencies are satisfied on your system, that rpm command will work
0
 
LVL 44

Expert Comment

by:Darr247
ID: 39781026
$ su -c yum install /folder1/folder2/folder3/rpms/[packagename-version-arch].rpm

I believe is what you're seeking. You'll be prompted for the root password before yum runs.

$ sudo yum install /folder1/folder2/folder3/rpms/[packagename-version-arch].rpm

would prompt you for the current user's password if that user's in the /etc/sudoers file with at least yum privileges.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now