Results 1 to 6 of 6

Thread: fresh install and programs

  1. #1
    Join Date
    Jan 2008
    Location
    Greece
    Beans
    Hidden!
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Question fresh install and programs

    Hi , i just wonder if there is a way to backup the programs i have installed now , and move them to a fresh install of an other distribution of ubuntu, instead of install them one by one again ... so is there ?

  2. #2
    Join Date
    Jan 2008
    Location
    Argentina
    Beans
    755
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: fresh install and programs

    there is.
    Code:
    dpkg --set-selections > my-pkg-list
    this will create the file my-pkg-list

    to import said file:

    Code:
    dpkg --set-selections < my-pkg-list
    
    dselect
    Last edited by bruno9779; February 14th, 2010 at 10:37 PM.
    AMD Phenom II X3 720 Black Edition 2,8 GHz - GIGABYTE GA-MA770T-UD3P - 6 GB RAM Mushkin DDR3 1333 - ZOTAC GeForce 9800 GT 1 GB DDR3

  3. #3
    Join Date
    Jan 2008
    Location
    Greece
    Beans
    Hidden!
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: fresh install and programs

    I suppose "--set-selections" will be the folders where i ve installed programs ...? if i replace the root folder of fresh install with a backup, its ok ? even if the backup is from 9.10 and fresh install is 10.04 ? following this : http://ubuntuforums.org/showthread.php?t=81311 for example is fine for what i want ?

  4. #4
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: fresh install and programs

    Quote Originally Posted by nick_goodfate View Post
    I suppose "--set-selections" will be the folders where i ve installed programs ...? if i replace the root folder of fresh install with a backup, its ok ? even if the backup is from 9.10 and fresh install is 10.04 ? following this : http://ubuntuforums.org/showthread.php?t=81311 for example is fine for what i want ?
    No, that's not a backup. What the dpkg --set-selections does is create a list of installed and removed applications, so you can install on another machine or after a clean install using a simple command. It basically creates something like a batch installation command. The installation will be automated, but you will still need Internet connection. The advantage is that you don't need to keep track of which applications you have installed and can install them all at once, with a simple command.

    If you prefer you can use my Firefox extension called UMarks to do that. It creates lists of installed packages that you can export and then import into the other machine and install the applications. It is basically a gui for dpkg --set-selections.

  5. #5
    Join Date
    Jun 2005
    Location
    Australia
    Beans
    1,837

    Re: fresh install and programs

    Wow, thats a really useful command.

    So what is the command to install the entire list?

  6. #6
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: fresh install and programs

    Quote Originally Posted by Mustard View Post
    Wow, thats a really useful command.

    So what is the command to install the entire list?
    To replicate your packages selection on another machine (or restore it if re-installing), you can type:

    Code:
    dpkg --get-selections > ~/my-packages
    move the file "my-packages" to the other machine, and there type

    Code:
    sudo dpkg --set-selections < my-packages && sudo apt-get dselect-upgrade

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
  •