LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-19-2004, 01:28 AM   #1
Darx
Member
 
Registered: Mar 2004
Posts: 52

Rep: Reputation: 15
RPM Problem... What the hell is wrong with this thing?


[root@xxxxx]# cd /new/
[root@xxxxx]# ls
flash Wine-20040309.tar.gz
mplayer winex-3.3-1.i686.rpm
NVIDIA-Linux-x86-1.0-5336-pkg1.run xmms-mp3-fc1
ut2004-lnx-demo-3120.run.bz2 xmms-mp3-fc1.tar.gz
wine-20040213-1fc1winehq.i686.rpm
[root@xxxxx]# rpm -e wine*2004*rpm
error: package wine-20040213-1fc1winehq.i686.rpm is not installed
[root@xxxxx]# rpm -i wine*2004*rpm
package wine-20040213-1fc1winehq is already installed
[root@xxxxx]#



Sooo.... I'm really kinda stuck here... anyone know what I can do? What I'm basically trying to do is install WineX, which tells me it can't find Wine when I try. So I figure, heh, maybe if I get rid of Wine, it'll malfunction in a favorable way. Really, who the hell knows?
 
Old 03-19-2004, 01:30 AM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Don't put the rpm on the end of the:
rpm -e wine*2004*rpm
Just try:
rpm -e wine*2004*
 
Old 03-19-2004, 01:32 AM   #3
Darx
Member
 
Registered: Mar 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Still gives me the same messages... any other ideas?
 
Old 03-19-2004, 01:37 AM   #4
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Try:
rpm -q wine

And then rpm -e whatever that returns. And try it without the wildcards.
 
Old 03-19-2004, 01:41 AM   #5
Darx
Member
 
Registered: Mar 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Awesome, it worked. Thanks itsjust.
 
Old 03-19-2004, 07:39 AM   #6
flyfishin
Member
 
Registered: Aug 2003
Location: KC, MO
Distribution: CentOS, RHEL, SuSE, Fedora
Posts: 243

Rep: Reputation: 30
You can use wildcards to look for rpms:

rpm -qa lib*

Gives a list of all rpms that start with lib.

rpm -qa *lib

Gives a list of all rpms that end with lib.

rpm -qa *lib*

Gives a list of all rpms that have lib in the name

rpm -e takes things very literally. When you use erase and rpm you have to give it the name that is in the rpm database, it won't use wildcards. Could you imagine the issues if you could use wild cards. Someone would surely issue rpm -e *. When you were issuing the command rpm -e wine*2004*rpm it was looking for an rpm named wine*2004*rpm in the rpm database and couldn't find it. When it couldn't find it in the rpm database it then looked in the current directory and saw the wine rpm file and then expanded the wild cards to look for that rpm. That's why it looked for wine-20040213-1fc1winehq.i686.rpm in the rpm database. Again, the name in the database, as you found out is simply wine. Then when you tried to do an rpm -ivh wine*2004*rpm, rpm looked in the current directory for an rpm and expanded the wildcards. It tried to install the rpm but the rpm was already installed, under the name wine.
 
Old 03-19-2004, 06:23 PM   #7
kai_t
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by flyfishin
When you were issuing the command rpm -e wine*2004*rpm it was looking for an rpm named wine*2004*rpm in the rpm database and couldn't find it. When it couldn't find it in the rpm database it then looked in the current directory and saw the wine rpm file and then expanded the wild cards to look for that rpm.
For this reason, one should always use single or double quotes around a wildcard expression (or use backslashes to escape the characters special to the shell) when the expression is meant for a program other than the shell. E. g.:
Code:
rpm -qa "kernel*"
 
Old 03-19-2004, 09:38 PM   #8
Darx
Member
 
Registered: Mar 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Wow, these are some nice tips everyone.

BUT... heh, I've run into another problem.

Basically, this one's probably my fault entirely. Yesterday, I tried

rpm -e wine-20040309-1rh73winehq

to remove it and start over, as wine is kind of... worthless right now. So after I issued that command, it sat there doing nothing for a while. Meaning my comp wasn't making that 'thinking' sound, and the shell wasn't returning that little '[root#@xxxxxx]' line that puts in front of everything. I gave it a half-hour and nothing.

Also, the little blinking red exclamation mark update thing froze.


So anyway, today, here's what I get

[root@xxxxxxx]# rpm -e wine-20040309-1rh73winehq
error reading information on service wine: No such file or directory
error: %preun(wine-20040309-1rh73winehq) scriptlet failed, exit status 1
[root@xxxxxxxx]# rpm -i wine*2004*rpm
package wine-20040309-1rh73winehq is already installed
[root@xxxxxxxx]#

Soo.. any new ideas?
Hehehe...
 
Old 03-19-2004, 10:09 PM   #9
kai_t
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by Darx
[root@xxxxxxx]# rpm -e wine-20040309-1rh73winehq
error reading information on service wine: No such file or directory
error: %preun(wine-20040309-1rh73winehq) scriptlet failed, exit status 1
rpm -e --noscripts wine-20040309-1rh73winehq
 
Old 03-20-2004, 12:09 AM   #10
Darx
Member
 
Registered: Mar 2004
Posts: 52

Original Poster
Rep: Reputation: 15
Nice, it worked. Thanks again LQ.org.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
some thing wrong with my sys? the13thday Linux - Hardware 3 09-17-2005 10:35 PM
Am I doing the wrong thing? cragwolf Slackware 4 02-26-2005 07:43 AM
What the hell am I doing wrong???? drknownothing Linux - Hardware 9 09-30-2004 08:28 AM
Another ed2k_gui Problem ... What the hell is wrong. casstyle78 Linux - Software 0 11-06-2003 12:22 PM
What the hell am I doing wrong? Blank screen on boot. yakko Linux - Newbie 13 06-02-2003 08:45 PM


All times are GMT -5. The time now is 01:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration