Results 1 to 4 of 4

Thread: How to get list of installed packages for migrating between machines?

  1. #1
    Join Date
    Jun 2005
    Beans
    85

    How to get list of installed packages for migrating between machines?

    Hi,

    I'm migrating to a new Lucid Lynx machine, and I'd like to install all of the packages that I currently have installed on my old machine. Is there a way to query a list of all packages that are currently installed on a particular system, such that I could simply throw this list at apt-get on a new system?

    Please let me know. Thanks,

    Jake

  2. #2
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,416
    Distro
    Xubuntu

    Re: How to get list of installed packages for migrating between machines?


  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How to get list of installed packages for migrating between machines?

    If all your debs are current and you do not want to download all new files Rubi1200 way looks good. I also have seen recommendations for aptonCD but have not used it.

    If installing to a newer version or downloading is not an issue.

    sudo cp /etc/apt/sources.list ~/sources.list.backup
    Otherwise if you have added any PPAs or other sources, this tip won't work.
    generate new sources file

    from lovinglinux - use dpkg to list installed apps
    http://ubuntuforums.org/showpost.php...75&postcount=5
    http://repogen.simplylinux.ch/index.php
    http://kevin.vanzonneveld.net/techbl...selectupgrade/

    and using synaptic
    http://ubuntuforums.org/showthread.php?t=1057608

    I have used the commands
    dpkg --get-selections | grep -v deinstall > ubuntu-files
    or
    dpkg --get-selections > ubuntu-files

    I also periodically run the above command and save into /home so my backup has a list reasonably current. I used it to recreate my Karmic on my portable and for my upgrade to Lucid. The first time I used it was from my Jaunty which was upgraded in place for about 3 years. List had a lot of older programs, so be sure to houseclean in synaptic before running if that applies.

    List with explanations of programs, not for reinstall
    dpkg -l > ~/Desktop/installed_programs.txt
    Last edited by oldfred; June 23rd, 2010 at 07:57 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Jun 2005
    Beans
    85

    Re: How to get list of installed packages for migrating between machines?

    Thanks, that was exactly what I needed to know!

    Jake

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
  •