Correcting 'rpm' database?
Running SuSE 9.2. Wanted to use the features of the ATI proprietary video driver. Installed fglrx_6_8_0-8.8.25-1.i386.rpm But the ATI driver did not access the AGP on my A7N8X-E board. Tried various things, including reinstall/recompile of the driver. In the process, I've managed to bring 'rpm' into a confused state: If I do 'rpm -q fglrx' it responds "package fglrx is not installed". If I do 'rpm -e fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm is not installed". If I do 'rpm -Uv fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm' is already installed". Running 'rpm --rebuilddb' does not help. How do I "reset" the 'rpm' database to allow me to erase this package, and install it anew ? Thanks, mikus
On Thursday 27 January 2005 10:17, Mikus Grinbergs wrote:
Running SuSE 9.2. Wanted to use the features of the ATI proprietary video driver. Installed fglrx_6_8_0-8.8.25-1.i386.rpm
But the ATI driver did not access the AGP on my A7N8X-E board. Tried various things, including reinstall/recompile of the driver. In the process, I've managed to bring 'rpm' into a confused state:
If I do 'rpm -q fglrx' it responds "package fglrx is not installed". If I do 'rpm -e fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm is not installed". If I do 'rpm -Uv fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm' is already installed".
Running 'rpm --rebuilddb' does not help. How do I "reset" the 'rpm' database to allow me to erase this package, and install it anew ?
ATI seems to have anticipated this problem and instructs you to use the force option ie "rpm -Uv --force fglrx..." when installing their rpm. I installed the package using YaST and was able to remove it by using YaST->Install and Remove Software then de-selecting it. Unfortunately I've been unable to get the driver to work in 9.1 so I can't offer more help than this. Jeff
On Thu, 27 Jan 2005 12:33:04 -0500 Jeffrey Laramie <suse-linux-e@Trans-Star.net> wrote:
If I do 'rpm -q fglrx' it responds "package fglrx is not installed". If I do 'rpm -e fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm is not installed". If I do 'rpm -Uv fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm' is already installed".
Running 'rpm --rebuilddb' does not help. How do I "reset" the 'rpm' database to allow me to erase this package, and install it anew ?
ATI seems to have anticipated this problem and instructs you to use the force option ie "rpm -Uv --force fglrx..." when installing their rpm. I installed the package using YaST and was able to remove it by using YaST->Install and Remove Software then de-selecting it. Unfortunately I've been unable to get the driver to work in 9.1 so I can't offer more help than this.
Jeff
I was just illustrating 'rpm' behavior in my post -- when I did the install I *did* use '--force' as ATI instructed. Thanks, Jeff - you helped me by telling me to use 'YaST -> Install and Remove Software'. That *did* list 'fglrx' as installed, and *did* let me run 'delete'. [Though it did *not* delete the results of the fglrx compilation I had run, nor the fglrx.ko file(s).] Seems like my original question remains - though 'YaST -> Install and Remove Software' is able to see the fglrx package, 'rpm' (after I did the "rpm -Uv --force fglrx..." command again), __still__ replies to 'rpm -q fglrx' with: "package fglrx is not installed". Can this confusing 'rpm' behavior be corrected ? mikus
ATI seems to have anticipated this problem and instructs you to use the
force option ie "rpm -Uv --force fglrx..." when installing their rpm. I installed the package using YaST and was able to remove it by using YaST->Install and Remove Software then de-selecting it. Unfortunately I've been unable to get the driver to work in 9.1 so I can't offer more help than this.
Jeff
I was just illustrating 'rpm' behavior in my post -- when I did the install I *did* use '--force' as ATI instructed.
Thanks, Jeff - you helped me by telling me to use 'YaST -> Install and Remove Software'. That *did* list 'fglrx' as installed, and *did* let me run 'delete'. [Though it did *not* delete the results of the fglrx compilation I had run, nor the fglrx.ko file(s).]
The compilation process will create files that were never in the original rpm so they will be left behind after the rpm is removed.
Seems like my original question remains - though 'YaST -> Install and Remove Software' is able to see the fglrx package, 'rpm' (after I did the "rpm -Uv --force fglrx..." command again), __still__ replies to 'rpm -q fglrx' with: "package fglrx is not installed".
Can this confusing 'rpm' behavior be corrected ?
See Randall's post and try rpm -q fglrx_6_8_0 Jeff
On Thursday 27 January 2005 03:10 pm, Mikus Grinbergs wrote:
On Thu, 27 Jan 2005 12:33:04 -0500 Jeffrey Laramie <suse-linux-e@Trans-Star.net> wrote:
If I do 'rpm -q fglrx' it responds "package fglrx is not installed". If I do 'rpm -e fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm is not installed". If I do 'rpm -Uv fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm' is already installed".
Running 'rpm --rebuilddb' does not help. How do I "reset" the 'rpm' database to allow me to erase this package, and install it anew ?
ATI seems to have anticipated this problem and instructs you to use the force option ie "rpm -Uv --force fglrx..." when installing their rpm. I installed the package using YaST and was able to remove it by using YaST->Install and Remove Software then de-selecting it. Unfortunately I've been unable to get the driver to work in 9.1 so I can't offer more help than this.
Jeff
I was just illustrating 'rpm' behavior in my post -- when I did the install I *did* use '--force' as ATI instructed.
Thanks, Jeff - you helped me by telling me to use 'YaST -> Install and Remove Software'. That *did* list 'fglrx' as installed, and *did* let me run 'delete'. [Though it did *not* delete the results of the fglrx compilation I had run, nor the fglrx.ko file(s).]
Seems like my original question remains - though 'YaST -> Install and Remove Software' is able to see the fglrx package, 'rpm' (after I did the "rpm -Uv --force fglrx..." command again), __still__ replies to 'rpm -q fglrx' with: "package fglrx is not installed".
Can this confusing 'rpm' behavior be corrected ?
mikus ========
Mikus, Try the rpm command: rpm -qa|grep fglrx That should give you any and all of the files with "fglrx" in it's name and should also prove your rpm database is still ok. Lee -- --- KMail v1.7.2 --- SuSE Linux Pro v9.2 --- Registered Linux User #225206 "Don't let the fear of striking out keep you from playing the game!"
Mikus, On Thursday 27 January 2005 07:17, Mikus Grinbergs wrote:
Running SuSE 9.2. Wanted to use the features of the ATI proprietary video driver. Installed fglrx_6_8_0-8.8.25-1.i386.rpm
But the ATI driver did not access the AGP on my A7N8X-E board. Tried various things, including reinstall/recompile of the driver. In the process, I've managed to bring 'rpm' into a confused state:
If I do 'rpm -q fglrx' it responds "package fglrx is not installed".
So most likely the package named "fglrx" is not installed.
If I do 'rpm -e fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm is not installed".
Erasing a package requires the package name, not the RPM file name. Furthermore, the packge name is "fglrx_6_8_0", not "fglrx". The package version suffix is "-8.8.25-1". Try: % rpm -e fglrx_6_8_0
If I do 'rpm -Uv fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm' is already installed".
RPM is telling you cannot "upgrade" to the same version already installed.
Running 'rpm --rebuilddb' does not help. How do I "reset" the 'rpm' database to allow me to erase this package, and install it anew ?
Probably there is nothing wrong with your RPM database, just with the way you're invoking the various RPM commands.
Thanks, mikus
Randall Schulz
On Thu, 27 Jan 2005 10:14:49 -0800 Randall R Schulz <rschulz@sonic.net> wrote:
Mikus,
On Thursday 27 January 2005 07:17, Mikus Grinbergs wrote:
Running SuSE 9.2. Wanted to use the features of the ATI proprietary video driver. Installed fglrx_6_8_0-8.8.25-1.i386.rpm
But the ATI driver did not access the AGP on my A7N8X-E board. Tried various things, including reinstall/recompile of the driver. In the process, I've managed to bring 'rpm' into a confused state:
If I do 'rpm -q fglrx' it responds "package fglrx is not installed".
So most likely the package named "fglrx" is not installed.
Thank you for your advice below - then it makes sense how 'rpm -q fglrx' responds. But I'm almost SURE that the very first time I installed this package, and did 'rpm -q fglrx', the response was the full 29-character (or so) package name.
If I do 'rpm -e fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm is not installed".
Erasing a package requires the package name, not the RPM file name.
You're right. A thingy gets installed using the name of the "PACKAGE_FILE", but to get it de-installed one must supply the "PACKAGE_NAME". I guess that's just part of learning Linux syntax.
Furthermore, the packge name is "fglrx_6_8_0", not "fglrx". The package version suffix is "-8.8.25-1". Try:
% rpm -e fglrx_6_8_0
Thank you. I guess I have a lot to learn about Linux syntax.
If I do 'rpm -Uv fglrx_6_8_0-8.8.25-1.i386.rpm' it responds "package fglrx_6_8_0-8.8.25-1.i386.rpm' is already installed".
RPM is telling you cannot "upgrade" to the same version already installed.
My point here was *not* to perform the upgrade, but to illustrate what to me seemed OPPOSITE responses ("not installed" vs. "already installed") when I used the same (but now I see improper) string as the name of the thingy to be deleted or to be installed.
Running 'rpm --rebuilddb' does not help. How do I "reset" the 'rpm' database to allow me to erase this package, and install it anew ?
Probably there is nothing wrong with your RPM database, just with the way you're invoking the various RPM commands.
Well, I must have read 'man rpm' more than twenty times. It tells me how to "Display trigger suffix" (whatever the h___ that means!), but does not warn me about what is part of the package name vs. what is part of the version name. Did somebody say that learning Linux is easy ? Thanks for pointing things out to me, mikus
participants (4)
-
BandiPat
-
Jeffrey Laramie
-
mikus@bga.com
-
Randall R Schulz