Yum gives error : filename does not end in .rpm.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Yum gives error : filename does not end in .rpm.
# 1  
Old 10-18-2013
Yum gives error : filename does not end in .rpm.

Hi there

Code:
/root #yum localinstall sg3_utils
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Local Package Process
Skipping: sg3_utils, filename does not end in .rpm.
Nothing to do
/root #

above is the error

Code:
/root #repoquery sg3_utils
sg3_utils-0:1.28-3.el6.i686
/root #

Only when i goto path it installs it
Code:
/root #yum localinstall sg3_utils-1.28-3.el6.i686.rpm
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Local Package Process
Cannot open: sg3_utils-1.28-3.el6.i686.rpm. Skipping.
Nothing to do
/root #
/root #
/root #cd -
/root/rpm/Packages
/root/rpm/Packages #
/root/rpm/Packages #yum localinstall sg3_utils-1.28-3.el6.i686.rpm
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Local Package Process
Examining sg3_utils-1.28-3.el6.i686.rpm: sg3_utils-1.28-3.el6.i686
Marking sg3_utils-1.28-3.el6.i686.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sg3_utils.i686 0:1.28-3.el6 will be installed


can anyone has any clue ?

Last edited by Scott; 10-18-2013 at 06:41 PM.. Reason: Code tags
# 2  
Old 10-18-2013
I'm not sure what your problem is, exactly. localinstall expects the name of an RPM file.
# 3  
Old 10-18-2013
Well if you see carefully, I ran same cmd, yum localinstall sg3_utils-1.28-3.el6.i686.rpm , from repository & otherwise.. it works only from repositories location

Sorry if it was not clear

Thanks,
# 4  
Old 10-18-2013
It works only from the location of the RPM, or from the given path to the RPM in the yum command itself.
This User Gave Thanks to Scott For This Post:
# 5  
Old 10-18-2013
Install from repo, be anywhere in terminal:
Code:
# yum install PACKAGE

Install file, must be in same path:
Code:
# yum install PACKAGE.rpm

If NOT in same path:
Code:
# yum install /path/to/file.rpm

What you report, looks and acts as it should.

Hope this helps

Last edited by sea; 10-18-2013 at 11:03 PM..
# 6  
Old 10-19-2013
Got you.. But I have repo created already .. do u see any error in that ?

Code:
/etc/yum.repos.d #more myrepo.repo
[local]
name=My Awesome Repo
baseurl=file:///root/rpm/Packages
enabled=1
gpgcheck=0
/etc/yum.repos.d #

# 7  
Old 10-19-2013
No.

Your repo is working.
A local repo you install from is NOT the same as installing a local (eg: downloaded) file.

See:
Code:
yum repolist

Hope this helps
sea out.

Last edited by sea; 10-19-2013 at 06:57 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Find which RPM Azure repo is used in "yum repolist" for EUS or non EUS repos

Hello, I'm looking for help with a script or ideally just a one line command perhaps that will check the results of yum repolist and look for a specific repo on a sever. We have some VM's using EUS repos from Red Hat and others that do not use EUS repos. The way we would see which repos are... (2 Replies)
Discussion started by: greavette
2 Replies

2. Solaris

Yum, rpm, apt-get install command not found in Solaris

I am using solaris 10 yum command not found apt-get install command not found rpm command not found how to use yum and apt-get command in solaris how to install dhcp, openldap-servers packages in solaris (4 Replies)
Discussion started by: ainstin
4 Replies

3. Red Hat

Difference in conflict resolving between yum and rpm installs

Hi Guys, I am trying to test installation of a local rpm to my RHEL5 server. I am expecting it to fail as a previous version of the same package name exists. On using rpm -i this behaves as expected but yum install does not pick up the conflict. Here is the element of my SPEC file with the... (5 Replies)
Discussion started by: gazza-o
5 Replies

4. Linux

Difference in binary file sizes after deploying package via yum/rpm

Hi Guys, I have an issue whereby I package up an rpm and when I deploy it, the binary filesizes differ from what I packaged up from the SOURCE directory. from source - -rwxrwxr-x 1 user group 685156 Sep 26 15:50 cybAgent.bin after install - -rwxr-xr-x 1 user group 683388 Oct 16 11:10... (4 Replies)
Discussion started by: gazza-o
4 Replies

5. UNIX for Advanced & Expert Users

How to install .rpm file from a directory using yum?

Hello Everybody, I am having a cluster which is not connected to internet. I want to check its performance do I downloaded required packages from the internet and copied them in a particular folder. As per the instructions given at http:... (6 Replies)
Discussion started by: albertspade
6 Replies

6. Shell Programming and Scripting

* in end of filename

Hi, i have some files which looks like given below: -rwxrwxrwx 1 amsbatch ams 1608 Oct 22 2009 AMS_BATCH_COMPILE* -rwxr----- 1 amsbatch ams 1608 Oct 22 2009 AMS_BATCH_COMPILE_original* -rwxrwxrwx 1 amsbatch ams 1127 Dec 1 2005 AMS_LMU.sh* drwxr-xr-x 2... (3 Replies)
Discussion started by: mann2719
3 Replies

7. Red Hat

[Errno 22] invalid mode ('w') or filename: '//var/lib/yum/rpmdb-indexes/conflicts.tmp'

Can anyone help me with this error? sudo yum install perl-Gtk2-WebKit Loaded plugins: langpacks, presto, refresh-packagekit, versionlock Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package perl-Gtk2-WebKit.i686 0:0.09-1.fc15 will be installed -->... (0 Replies)
Discussion started by: cokedude
0 Replies

8. Shell Programming and Scripting

How to make RPM not write to RPM database if RPM fails to deploy?

How to make RPM not write to RPM database if RPM fails to deploy? IE I create an rpm spec file that contains the following if then exit 1 fi My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies

9. Red Hat

Remote installation of rpm package (Using YUM)

Hi, I have configured YUM repository on a server and we have 10 linux machine (clients). Is there any way we can install a package on all the 10 machines from YUM repository server? Please help me. (7 Replies)
Discussion started by: uday123
7 Replies

10. Linux

where to edit yum or rpm packages to update

I am setting up a new server with the goal of porting a solaris server to centos. I want to compile some packages myself (ie) http, ssl, mysql, etc. The reason for this is the downloadable rpm packages are very old. I probably want to make sure the kernel is up to date, but the individual pages... (2 Replies)
Discussion started by: csross
2 Replies
Login or Register to Ask a Question