You are not logged in.
Pages: 1
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 
Offline
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
Hello,
I don't understand the last line "suppressed..." of your message, sorry.
Can you tell me again?
Thank you
Offline
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
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
@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
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
Thank you. I'll never know if your solution was working. I've already reinstalled the whole system.
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]