1

i know on desktop there's a graphical way to sync package list between pc.

on servers i've always been doing

dpkg --get-selection >pkg_list
scp pkg_list username@server:
dpkg --set-selction <pkg_list
apt-get update && apt-get upgrade

unfortunately this looks deprecated: i'm not anymore able to do that. is there any other way? (and without involving external tools like ansible, salt, puppet )

n.b. i don't want to sync configuration files or directory, just packages.

edit: added apt-get command to update/upgrade

5
  • 1
    What problem are you having with the above commands and what makes you think it is "depreciated"?
    – Panther
    Jun 2, 2014 at 15:09
  • problem is that it is not working anymore: make an ubuntu fresh install from 14.04 and install a bunch of packages . make a new server and do that --get-selection and set-selection. everything seems fine however apt-get upgrade won't work
    – samu
    Jun 2, 2014 at 15:49
  • 1
    What exact error do you get? Are both servers running 14.04?
    – bain
    Jun 2, 2014 at 15:51
  • i get no error: commands end fine but pkg list is not synchronized
    – samu
    Jun 2, 2014 at 16:31
  • 1
    Should that not be sudo apt-get -u dselect-upgrade
    – Panther
    Jun 2, 2014 at 19:09

0

You must log in to answer this question.

Browse other questions tagged .