How Refresh exactly all installed packages

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

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.
Rispondi
fifi1234
Linux 0.x
Linux 0.x
Messaggi: 9
Iscritto il: sab 9 set 2006, 1:50

How Refresh exactly all installed packages

Messaggio da fifi1234 »

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 ??

Avatar utente
mauro
Linux 2.x
Linux 2.x
Messaggi: 281
Iscritto il: gio 11 mag 2006, 21:51
Slackware: current
Kernel: uno degli ultimi...
Desktop: dwm

Messaggio da mauro »

I would try (from the folder where you keep your .tgz in):

Codice: Seleziona tutto

upgradepkg --reinstall /var/log/packages/*
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 !

Avatar utente
mauro
Linux 2.x
Linux 2.x
Messaggi: 281
Iscritto il: gio 11 mag 2006, 21:51
Slackware: current
Kernel: uno degli ultimi...
Desktop: dwm

Messaggio da mauro »

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

fifi1234
Linux 0.x
Linux 0.x
Messaggi: 9
Iscritto il: sab 9 set 2006, 1:50

Messaggio da fifi1234 »

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.

Rispondi