Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error regarding installation of RPM package

Posted on 2016-09-26
5
Medium Priority
?
70 Views
Last Modified: 2016-09-27
This is a screen shot showing the package we want to install inside the directory.  Note the error at the bottom of the screenshot.

Please advise.  TIA
Capture.PNG
0
Comment
Question by:Michael Cantrall
[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
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Kent W
ID: 41816390
the leading / in your path /Packages is telling the system "this is from root".
Are the files actually in /Packages, from the very root /?

If you do a
cd /
then
list -l
Do you see "Packages" in that list?

If you can cd into the directory where the rpms reside, then do a
pwd
This will print out your full working directly path.
0
 

Author Comment

by:Michael Cantrall
ID: 41816492
Well the path was wrong as well as the file name.  Using correct path and file name and error is still present.

Correct path is /media/Packages
Correct file name: dhcp-4.1.1-34.P1.e16.x86_64.rpm
Command as written: cp /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp

Error: cp: cannot stat 'cp /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm': No such file or directory.

Physical DVD is in host and mounted in Linux VM
Capture2.PNG
0
 

Author Comment

by:Michael Cantrall
ID: 41816696
Further assistance is appreciated.
0
 
LVL 12

Accepted Solution

by:
Kent W earned 2000 total points
ID: 41816819
Can you so an
 ls -l /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm
and have it give you output or does it say no suck file or directory?

if you can physically cd into /media/Packages/, you can try
cp ./dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp
(notice the dot (.) before the leading /, which means "relative to where I am typing from"
OR, while in "Packages" directory, do a
pwd
Which will give you to the full directory path.

You can also make use of tab auto-complete. Give your cp command, then type the first couple of letters in "media", hit tab and let it auto-complete, give the first few letters of Packages, hit tab, first few letters of your file dhcp- hit tab, until you have the full path and file name. Since you let the system find it itself, you should have the complete accepted path with correct.
0
 

Author Comment

by:Michael Cantrall
ID: 41817689
On this ls -l /media/Packages/dhcp-4.1.1-34.P1.e16.x86_64.rpm, the response was no such file or directory.
This also failed cp ./dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp, however after modifying to this string cp ./dhcp-4.1.1-34.P1.e16.x86_64.rpm /tmp/ the file copied successfully.

Appreciate the assistance.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

715 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