Apt-get

Iš Žinynas.
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Tų pačių paketų migravimas iš kitos sistemos

Senojoje sistemoje rašome:

dpkg --get-selections | sed "s/.*deinstall//" | sed "s/install$//g" > pkg.txt

Naujojoje sistemoje rašome:

aptitude update && cat pkg.txt | xargs sudo aptitude install -y

Visų paketų "perinstaliavimas"

aptitude reinstall '~i'

arba:

dpkg --get-selections | grep -v deinstall | awk '{print $1}' | awk '$1=$1' ORS=' ' > list.log
apt-get clean && apt-get update && apt-get install --reinstall $(cat list.log)
apt-get install --reinstall $(dpkg --get-selections | grep -w 'install$' | cut -f1)