Solved

Yum install

Posted on 2014-01-14
5
534 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Rate limit for DNS queries 7 93
Linux Samba using Kerberos to Auth from Active Directory 9 91
Recover Lacie Edmini data. 11 63
Install XRDP on Ubuntu Server 16.10 x64 3 59
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

756 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