Difference between revisions of "Ubuntu packages"
From Teknologisk videncenter
m |
m (→Install a new Ubuntu with same packages) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | =See | + | =See installed packages= |
+ | On '''old.server.com''' make list of installed packages. | ||
<source lang=cli> | <source lang=cli> | ||
dpkg --get-selections >> /tmp/installed_pkg.lst | dpkg --get-selections >> /tmp/installed_pkg.lst | ||
</source> | </source> | ||
==Install a new Ubuntu with same packages== | ==Install a new Ubuntu with same packages== | ||
− | + | If you want a new server to have the same packages as the '''old.server.com''' | |
<source lang=cli> | <source lang=cli> | ||
scp heth@old.server.com:/tmp/installed_pkg.lst /tmp | scp heth@old.server.com:/tmp/installed_pkg.lst /tmp | ||
− | dpkg -- | + | dpkg --set-selections < /tmp/installed_pkg.lst |
apt-get install dselect | apt-get install dselect | ||
dselect | dselect |
Latest revision as of 06:04, 18 April 2012
See installed packages
On old.server.com make list of installed packages.
dpkg --get-selections >> /tmp/installed_pkg.lst
Install a new Ubuntu with same packages
If you want a new server to have the same packages as the old.server.com
scp heth@old.server.com:/tmp/installed_pkg.lst /tmp
dpkg --set-selections < /tmp/installed_pkg.lst
apt-get install dselect
dselect
In the dselect menu select menu item 3 - Install