SliTaz SliTaz Forum

You are not logged in.

#1 2019-01-26 14:08:34

R8
Member
Registered: 2015-08-20
Posts: 143

var/lib/tazpkg deleted

Hello

I accidentally deleted the directory:

var/lib/tazpkg

(It wasn't really a mistake, it was a stupid test)

The problem is that the system no longer knows which packages are installed on the computer. And therefore no updates proposed.

Is there any way to know which packages are installed?

Thank you wink

Offline

#2 2019-01-26 19:40:20

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: var/lib/tazpkg deleted

Hi,

I remember I did it too a few years ago. I didn't find the topic but I did something like this:

- re-loaded the packages list;

- duplicated packages.md5 in installed.md5;

- suppressed all the lines of uninstalled packages (the names of the installed packages in /var/lib/tazpkg/installed).

This works if your system is up to date...

Offline

#3 2019-01-26 20:11:07

R8
Member
Registered: 2015-08-20
Posts: 143

Re: var/lib/tazpkg deleted

Hello,

I don't understand the last line "suppressed..." of your message, sorry.

Can you tell me again?

Thank you

Offline

#4 2019-01-26 20:33:39

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: var/lib/tazpkg deleted

packages.md5 contains md5 and names of all the 5454 packages.

installed.md5 contains only md5 and names of installed packages.

After you created a copy of packages.md5 that you named installed.md5, you have to suppress all the lines in you new installed.md5 that corresponds to uninstalled packages; ie: in the file you'll find[c]

[...]

3568b5d07c6c2e27fd8193462097731b  leafpad-0.8.18.1.tazpkg

8778ccf264960d6cb2fdcc42fdd3968b  ledger-2.6.3.tazpkg

[...][/c]

leafpad is (probably) installed; keep the line.

if ledger is not installed, delete the line.

Offline

#5 2019-01-26 20:42:08

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: var/lib/tazpkg deleted

Hi R8,

> Is there any way to know which packages are installed?

There's no simple solution, but reading the log /var/log/slitaz/tazpkg.log will show you the whole history of installing and removing the packages.

Offline

#6 2019-01-26 20:55:15

R8
Member
Registered: 2015-08-20
Posts: 143

Re: var/lib/tazpkg deleted

@Ceel

I deleted all the folder tazpkg. Now, the new file installed.md5 + folder /var/lib/tazpkg/installed are empty.

@Aleksej

Yes, it should be if a solution if I had not (also) deleted this file.

Don't look for a solution anymore, I'm busy reinstalling the system.

Offline

#7 2019-01-26 21:13:41

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: var/lib/tazpkg deleted

Maybe a last chance for you.

You needed to be root to do this. If you did it from the file manager, you'll find var/lib/tazpkg in /root/.local/share/Trash/files

and you can restore it.

Offline

#8 2019-01-26 21:30:48

R8
Member
Registered: 2015-08-20
Posts: 143

Re: var/lib/tazpkg deleted

Thank you. I'll never know if your solution was working. I've already reinstalled the whole system.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]