Results 1 to 7 of 7

Thread: How can I keep installed packages in sync across instalations

  1. #1
    Join Date
    Jun 2005
    Location
    Chico CA
    Beans
    2

    How can I keep installed packages in sync across instalations

    Hello,

    I have several boxes running ubuntu and I need to keep the same packages installed on all of these boxes.

    Is there anything as sexy as a tool that will let me apt-get a package on one box and it will automatically get installed on the other boxes? Or even something as simple as a way to export a list of installed packages on one box, copy the list to another, and run something that would install/uninstall packages on the new box to make it match the origional?

    Any ideas?

  2. #2
    Join Date
    Feb 2009
    Beans
    729

    Re: How can I keep installed packages in sync across instalations

    Good one - I second!

  3. #3
    Join Date
    Jul 2008
    Beans
    224

    Re: How can I keep installed packages in sync across instalations

    would it not be better to run one box as a server then utilize that to do what you want.
    Just asking as it seems the most obvious choice.

    Raz

  4. #4
    Join Date
    Apr 2008
    Beans
    242

    Re: How can I keep installed packages in sync across instalations

    you can ssh across machines

  5. #5
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: How can I keep installed packages in sync across instalations

    Last edited by Cheesemill; February 22nd, 2009 at 05:52 PM.

  6. #6
    Join Date
    Jan 2008
    Location
    Davison, Michigan, U.S.A.
    Beans
    1,055

    Re: How can I keep installed packages in sync across instalations

    HOW TO SAVE A PACKAGE LIST AND USE IT TO CLONE A LINUX SYSTEM
    -------------------------------------------------------------

    To save installed-packages-list to a file

    dpkg --get-selections | grep -v deinstall > /home/username/Documents/linux/installed-packages-list

    OR

    Make sure backup partition is mounted.
    dpkg --get-selections | grep -v deinstall > /media/disk/backup/Documents/linux/installed-packages-list
    -----------------------------------------------------------------------------------------------------

    To use installed-packages-list to clone a new linux installation

    1) Reinstall base system
    2) Copy entire network directory copied back to /etc/, sources.list copied back to etc/apt/
    3) Open network config window and enter encryption key. You now have internet access.
    4) sudo apt-get update
    5) sudo apt-get dist-upgrade
    6) dpkg --set-selections < /media/disk/backup/installed-package-list
    7) sudo apt-get install dselect
    8) sudo dselect
    9) when prompted, choose to install packages

  7. #7
    Join Date
    Feb 2009
    Beans
    729

    Re: How can I keep installed packages in sync across instalations

    What about the other machines are not in different location without Internet access?

    regards

    longtom

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •