Results 1 to 6 of 6

Thread: Generate Installed Packages List

  1. #1
    Join Date
    Jan 2007
    Beans
    207
    Distro
    Ubuntu Development Release

    Generate Installed Packages List

    I'm trying to use "dpkg --get-selections > list.log" to generate a list of installed applications for when I do a clean install. Is there any way I could format this list to be on one line with only the package names and spaces in between the names?

    I.e., how do I format list.log so I can simply copy/paste the contents into
    "sudo aptitude install "? I don't want to use dselect.
    Think.

  2. #2
    Join Date
    Jan 2007
    Location
    ~/PA/USA
    Beans
    1,984
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Generate Installed Packages List

    You would just need to save your packages with:
    Code:
    dpkg --get-selections > myselections.txt
    Then to restore the list just:
    Code:
    dpkg --set-selections < myselections.txt
    Then do:
    Code:
    apt-get update
    To refresh the selections then:
    Code:
    apt-get upgrade
    Hope this helps.......

  3. #3
    Join Date
    Jan 2007
    Beans
    207
    Distro
    Ubuntu Development Release

    Re: Generate Installed Packages List

    Thanks for the reply. I followed the first step, removed a package, added the selections in step two, updated and finally upgraded. However, it simply ignored the removed package - leaving me to assume it won't work. Any ideas?
    Think.

  4. #4
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Generate Installed Packages List

    I think the last command to issue after:

    Code:
    dpkg --set-selections < myselections.txt
    would be:

    Code:
    dselect
    But as I had read on your post, you don't like to use it.
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  5. #5
    Join Date
    Jan 2007
    Beans
    207
    Distro
    Ubuntu Development Release

    Re: Generate Installed Packages List

    Think.

  6. #6
    Join Date
    Jan 2007
    Location
    ~/PA/USA
    Beans
    1,984
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Generate Installed Packages List

    I haven't used this myself but should work. Did you clean the repository after the removal:
    Code:
    sudo apt-get autoclean && sudo apt-get autoremove
    This would clean any left over remnants of the removed package.

    just a thought.....

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
  •