Results 1 to 9 of 9

Thread: [SOLVED] 'Synaptic-installed-software' listing?

  1. #1
    Join Date
    Mar 2008
    Location
    Deep South Texas
    Beans
    1,890
    Distro
    Ubuntu 11.04 Natty Narwhal

    [SOLVED] 'Synaptic-installed-software' listing?

    I remember reading that a file exists that has a list of all installed software. Synaptic/atp-get use this.

    But I cannot remember the name of the file.

    sources.list is the repos, which I have backed up.

    I want to re-install Ubuntu, and don't want to go through the whole Synaptic search again...

    I'm lost.

    Thanks

    ErnestG

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: 'Synaptic-installed-software' listing?

    Run this to get a list on your desktop:
    Code:
    sudo dpkg --get-selections >~/Desktop/package-list
    Restore/import it with:
    Code:
    sudo apt-get update
    sudo dpkg --clear-selections  # to be used only immediately prior to next command
    sudo dpkg --set-selections <~/Desktop/package-list # see note
    sudo apt-get dselect-upgrade
    Added:
    The "--clear-selections" is used to change the status to deinstall of any non-essential packages. Use this command if you want to clone your other machine. If you might have additional packages on the new machine you wish to retain do not use this command.
    Before running the --set-selections command, you might want to inspect the 'package-list' file to ensure what will happen when you run the command. You can view it with "cat ~/Desktop/package-list"
    Last edited by drs305; October 7th, 2008 at 01:11 PM.
    New to Wayland.

    Retired.

  3. #3
    Join Date
    Sep 2007
    Beans
    70

    Re: 'Synaptic-installed-software' listing?

    You can do this:
    Code:
    dpkg --get-selections > /backup/installed-software.log
    To reinstall your applications later:
    Code:
    dpkg --set-selections < /backup/installed-software.log
    sudo dselect
    Cheers,

  4. #4
    Join Date
    Mar 2008
    Location
    Deep South Texas
    Beans
    1,890
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: 'Synaptic-installed-software' listing?

    Thanks for the help on this, it's going to be archived.

    My computer just crashed, so restoring the data to other drives and fixing what broke is taking priority.

    Thanks

    ErnestG

  5. #5
    Join Date
    Sep 2008
    Beans
    277
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: [SOLVED] 'Synaptic-installed-software' listing?

    Dear egalvan,

    I am working on a program that tries to automatise this task. Care to take a look?

    http://ubuntuforums.org/showthread.php?t=915712

    Hope it helps, good luck
    鳴かぬなら鳴かせてみようホトトギス

    I love you Aki

  6. #6
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: [SOLVED] 'Synaptic-installed-software' listing?

    Run this
    Code:
    dpkg -l | awk '/ii/ { print $2 }' > packages.txt
    and it'll put all installed packages into the textfile. Each packe on a seperate line.

    Run this
    Code:
    dpkg -l | awk '/ii/ { print $2 }' | tr '\n' ' ' > packages.txt
    and it will put all packages on one line. You can then reinstall by issuing:
    Code:
    sudo apt-get install `cat packages.txt`

  7. #7
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [SOLVED] 'Synaptic-installed-software' listing?

    hyper_ch,

    I like your solution better. It uses the more-familiar "apt-get install" rather than dselect (which is not installed by default).
    New to Wayland.

    Retired.

  8. #8
    Join Date
    Mar 2008
    Location
    Deep South Texas
    Beans
    1,890
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: [SOLVED] 'Synaptic-installed-software' listing?

    Quote Originally Posted by hyper_ch View Post
    Run this
    Code:
    dpkg -l | awk '/ii/ { print $2 }' > packages.txt
    and it'll put all installed packages into the textfile. Each packe on a seperate line.

    Run this
    Code:
    dpkg -l | awk '/ii/ { print $2 }' | tr '\n' ' ' > packages.txt
    and it will put all packages on one line. You can then reinstall by issuing:
    Code:
    sudo apt-get install `cat packages.txt`
    Extremely useful code, with good comments on what it's doing.
    It's going into my permanent files.
    Thank you very much.
    ErnestG

  9. #9
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 17.10 Artful Aardvark

    Re: [SOLVED] 'Synaptic-installed-software' listing?

    You can also see this in Synaptic; in the lower left corner click Sections, Status; upper left corner click Installed.

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
  •