problems Installing RPMforge (file not found by glob)

General support questions including new installations
Post Reply
mahlenius
Posts: 28
Joined: 2007/11/06 20:13:50

problems Installing RPMforge (file not found by glob)

Post by mahlenius » 2008/01/22 01:05:41

Hi,

I am trying to install RPMforge on a CentOS 5 machine (first time doing this for me). I am trying to install some items which are not in the CentOS repositories.

I am stuck about 1/2 way through this process. From the url:

http://wiki.centos.org/Repositories/RPMForge#head-d766e7aacdee6150c6705d9369aa36c9bcabc139

I have successfully (I think) got through these steps:

------------------------------
yum install yum-priorities

Edit the .repo files in /etc/yum.repos.d/ and set up priorities by adding the line:

priority=N

Download the rpmforge-release package.
http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Install DAG's GPG key
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

Verify the package you have downloaded
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm

---------------------

But when I try to run this command:

Install the package
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

I get the following error:

# rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
error: File not found by glob: rpmforge-release-0.3.6-1.el5.rf.*.rpm

Any clue what might be wrong?

The CentOS-Base.repo file from /etc/yum.repos.d looks like this:
[base]
name=CentOS-$releasever - Base
priority=1
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
priority=1
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
priority=1
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
priority=1
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
priority=2
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#

=====================================================

any help would be most appreciated.

thanks

'mark

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

problems Installing RPMforge (file not found by glob)

Post by michaelnel » 2008/01/22 01:12:53

[quote]
mahlenius wrote:

But when I try to run this command:

Install the package
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

I get the following error:

# rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
error: File not found by glob: rpmforge-release-0.3.6-1.el5.rf.*.rpm[/quote]

Don't use the * wildcard character. Pass the exact name of the file to rpm. In other words do this:

# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

User avatar
toracat
Forum Moderator
Posts: 7300
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: problems Installing RPMforge (file not found by glob)

Post by toracat » 2008/01/22 02:14:16

[quote]
mahlenius wrote:

# rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
error: File not found by glob: rpmforge-release-0.3.6-1.el5.rf.*.rpm
[/quote]
The rpm command is complaining it could not find the file with that name even when the "*" is expanded. Make sure you issue the rpm command [b]in the directory[/b] where the rpmforge-release-xxx.rpm file is located.

mahlenius
Posts: 28
Joined: 2007/11/06 20:13:50

Re: problems Installing RPMforge (file not found by glob)

Post by mahlenius » 2008/01/22 02:42:34

Thanks to both of you. I didn't realize where the orginal fetch put the file and was not sure if there was more than one.

I was just copying the instructions from the Wiki.

Appreciate your help!

'mark

User avatar
toracat
Forum Moderator
Posts: 7300
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: problems Installing RPMforge (file not found by glob)

Post by toracat » 2008/01/22 02:57:27

[quote]
mahlenius wrote:

I was just copying the instructions from the Wiki.
[/quote]
Copying the instructions from that page is supposed to work. If you think any of the examples in the wiki needs clarification or more detailed explanations, please report it here. That would help improve the wiki article.

mahlenius
Posts: 28
Joined: 2007/11/06 20:13:50

Re: problems Installing RPMforge (file not found by glob)

Post by mahlenius » 2008/01/22 03:52:21

Sure thing,

perhaps I was just supposed to understand what was going on, but didn't. So that's why I cut and pasted these commands.

From the page: http://wiki.centos.org/Repositories/RPMForge#head-d766e7aacdee6150c6705d9369aa36c9bcabc139

-----------------------------

"Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the package and trust Dag then it should be safe.

Install the package

rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

This will add a yum repository config file and import the appropriate GPG keys. At this point, you can set the priority of the RPMForge repository, and also of the CentOS repositories if you have not done so yet."

-------------------------------

So it was the globbing in the above cmd which did not work But your suggestion to completely specify the file name solved that problem. Maybe that page
should be updated?

thank you,

'mark

User avatar
toracat
Forum Moderator
Posts: 7300
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: problems Installing RPMforge (file not found by glob)

Post by toracat » 2008/01/22 04:57:20

[quote]
So it was the globbing in the above cmd which did not work But your suggestion to completely specify the file name solved that problem. Maybe that page should be updated?
[/quote]
There seems to be some misunderstanding here... Let me clear things up a bit :-)

The commands on the Wiki should work as such. That is, you can copy/paste them. The rpm command will understand the wildcard and therefore should find any matching file names. Let me show you my session. I have removed the rpmforge-release package from the system, then issued a series of commands -- [b]all by copying and pasting from the Wiki[/b].

[root@nova3 ttt]# wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
(this command downloaded the file in the current directory; see the next ls command)

[root@nova3 ttt]# ls -l
total 20
-rw-r--r-- 1 root root 16698 Mar 9 2007 rpmforge-release-0.3.6-1.el5.rf.i386.rpm

[root@nova3 ttt]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
[root@nova3 ttt]# rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
rpmforge-release-0.3.6-1.el5.rf.i386.rpm: (sha1) dsa sha1 md5 gpg OK
[root@nova3 ttt]# rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

The last command is the one in question and it did not produce any error. And the package has been successfully installed as shown in:

[root@nova3 ttt]# rpm -q rpmforge-release
rpmforge-release-0.3.6-1.el5.rf.i386

I hope I convinced you that all worked just fine. Now, the error you saw will be issued if the rpm command does not find any matching file name. For example, if I omit a letter intentionally:

[root@nova3 ttt]# rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rp
error: File not found by glob: rpmforge-release-0.3.6-1.el5.rf.*.rp

So, that's why I guessed that you did not have the .rpm file in the directory where you ran rpm.

Hope this helps a little.

Post Reply