jump to navigation

Quali pacchetti .deb ho installato? Aprile 2, 2008

Posted by linuxiano in Debian, Linux, Note su Linux, Ubuntu, Utility, terminale.
trackback

Avete bisogno di una lista con il nome di tutti i pacchetti installati sulla vostra linux-box?
Basta dare un efficace comando da terminale:
dpkg --get-selections | grep -w install > packages
verrà creato un file di testo chiamato packages con il nome di tutti i pacchetti .deb installati.

fonte:A.G.

Commenti»

1. ff77 - Aprile 3, 2008

più semplice e con più informazioni

dpkg -l

2. ago - Aprile 3, 2008

e se volessi solo i nomi dei pacchetti per poi creare uno script che mi faccia apt-get install nomediognipacchetto ?
potresti dirmi come estrarre in un file solo i nomi o meglio creare già riga per riga
apt-get install pacchetto
apt-get install pacchetto
apt-get install pacchetto
apt-get install pacchetto
TIA

3. mav - Aprile 3, 2008

@ago
dpkg -l | grep ^ii | cut -d” ” -f3 | xargs apt-get install
oppure
dpkg –get-selections | grep -w install | cut -f1 | xargs echo -e “#/bin/sh\n\napt-get install ” > install.sh

4. spippolazione - Aprile 3, 2008

Cito dalla Debian Quick Reference Guide:

3.4.9 Record/copy system configuration

To make a local copy of the package selection states:

# dpkg –get-selections “*” >myselections # or use \*
# debconf-get-selections > debconfsel.txt

“*” makes myselections include package entries for “purge” too.

You can transfer this file to another computer, and install it there with:

# dselect update
# debconf-set-selections < debconfsel.txt
# dpkg –set-selections <myselections
# apt-get -u dselect-upgrade # or dselect install

premetto che non l’ho mai provata :-)