Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 09-17-2004, 06:35 PM   #1
LQ Newbie
Registered: Sep 2004
Distribution: SuSE 9.1
Posts: 9

Rep: Reputation: 0
SuSE 9.1 Pro, Yast shows no packages installed!

I've got a really strange situation. I recently did an install of SuSE 9.1 Pro, and when I did so, I went ahead and selected for every package to be installed, since I had the space and didn't want to mess around later.

Everything seems to be fine. However, I noticed today when trying to troubleshoot a minor problem that somethign was very odd. According to Yast, I have no packages installed. At all. When I go to the "zzAll" selection on the list, nothing shows up as checked off. Obviously, since the system is running and I'm typing this, the packages are there. But Yast isn't seeing them.

What's more is, since it's not seeing them, installing ANYTHING through Yast means it wants to install a SLEW of "dependent" packages -- packages which are already installed but it thinks aren't. For example, (re-) installing kaffeine this afternoon required 30 minutes of package loading as Yast selected pretty much every single package that was tangentially connected to kaffeine to reinstall. Afterwards, going into Yast show still nothing is installed, including kaffeine (which of course really is installed).

What can I do to make it go through and correctly determine what is and isn't there? Any idea what could have caused this? I'll do a reinstall if needed, but I'm hoping there's an easy way around this. Google and forum searches didn't turn up a similar problem. Please help!
Old 09-17-2004, 08:23 PM   #2
LQ Newbie
Registered: Sep 2004
Distribution: SuSE 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Follow-up. I found another thread where someone had this problem, but it looks like no one was able to help that person either. I tried doing updatedb as su, but it gave me a bunch of "Permission denied" errors and did not solve the problem.

Searching on Google I found out that Yast stores package info in

which is empty on my machine.

Surely there's SOME way to get Yast to reacquire package info!
Old 09-18-2004, 12:29 PM   #3
LQ Newbie
Registered: Sep 2004
Distribution: SuSE 9.1
Posts: 9

Original Poster
Rep: Reputation: 0
Well, some more digging and Googling and mucking about and I seem to have solved the problem! And me, a complete neophyte!

Here's the solution:

As root, head over to /usr/lib/rpm

Create a backup directory somewhere. I made /home/dave/dbbak

Move all of the rpmdb_ files to that directory. For me, this was:
mv rpmdb_* /home/dave/dbbak

Now rebuild the rpm database with this command:

rpm --rebuilddb

It'll take a few minutes, so be patient.

It finished, I went into YaST, and there were my packages.

Hope this helps someone in a similar bind!
Old 06-14-2005, 11:09 AM   #4
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
Hah! Youre lucky.

/var/lib/rpm contains no rpmdb__ files

Yast shows nothing

And rpm --rebuilddb
CRASHES, yes thats right, HANGS my machine completely.

And all I did was wipe (by accident) that var/opt/yast whatever wherever YaST stores its patches - cuz I have them all completely downloaded, thought I could just put it in there, silly me!



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
Suse 9.1 Pro problems with yast installing rpms fight_the_$oft SUSE / openSUSE 4 11-20-2004 10:01 PM
SuSE's YaST shows no packages... MoghNX01 Linux - General 4 09-17-2004 02:35 AM
No Yast GUI while installation in SuSE 9.1 PRO ! risqer Linux - Distributions 4 09-17-2004 12:50 AM
Suse 9.1 upgrading to pro by yast; how to save downloaded packages? oryan_dunn Linux - General 7 09-12-2004 12:59 PM
Installing S/W from DVD using YaST (Suse 9.1 Pro) xian67 Linux - Distributions 1 07-30-2004 04:02 PM > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:05 PM.

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