How I can re-install EXACTLY (same name/version number) the installed packages, from package files inside a folder? Has someone a script for this ???
From a lot of .tgz files inside a folder, from diferent sources (official Slackware, linuxpkgs, slacky), I want that these AND ONLY EXACTLY THESE which are installed, will be overcopied/reinstalled. To refresh them because during long time, perhaps some files gone damaged. Someone knows for this a program or script ??
How Refresh exactly all installed packages
Moderatore: Staff
Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
- mauro
- Linux 2.x

- Messaggi: 281
- Iscritto il: gio 11 mag 2006, 21:51
- Slackware: current
- Kernel: uno degli ultimi...
- Desktop: dwm
I would try (from the folder where you keep your .tgz in):
In this ways you are giving to upgradepkg the exact version of the packages you are willing to reinstall.
(you will receive a lot of "not found messages" too, if you don't have in the tgz folder all the packages you have installed in your system, but it should be OK )
Be sure to _not_ have aaa_elflibs and aaa_base in your tgz archive folder !
Codice: Seleziona tutto
upgradepkg --reinstall /var/log/packages/*
(you will receive a lot of "not found messages" too, if you don't have in the tgz folder all the packages you have installed in your system, but it should be OK )
Be sure to _not_ have aaa_elflibs and aaa_base in your tgz archive folder !
- mauro
- Linux 2.x

- Messaggi: 281
- Iscritto il: gio 11 mag 2006, 21:51
- Slackware: current
- Kernel: uno degli ultimi...
- Desktop: dwm
No, I posted a wrong suggestion. In that way we are telling to upgradepkg to search for the .tgz files in the /var/log/packages dir, use the line below instead:
Codice: Seleziona tutto
for a in /var/log/packages/*; do upgradepkg --reinstall "`echo $a| cut -d/ -f5`"; done
Yes, the 1st solution would install ALL packages in the folder, and it would remains that version with the highest number, but often I have installed versions with a lower number (f.ex. dbus-0.62 rather than dbus-1.03). The 2nd solution seems to be good. Im testing it, and later I apply it, after I report what happened.
