Results 1 to 3 of 3

Thread: [SOLVED] installing the same packages i already have

  1. #1
    Join Date
    May 2008
    Location
    UK
    Beans
    1,450
    Distro
    Ubuntu 8.04 Hardy Heron

    [SOLVED] installing the same packages i already have

    OK - I have Ubuntu 8.0.4 - and a whole slew of applications installed - including build essential, ajunta, wine, amsn, kopete etc etc etc.

    I have also just installed 8.10 in dual boot - and i would like to try to install the same packages on 8.10.

    I used this : http://ubuntuforums.org/showpost.php...3&postcount=14

    but when i tried the restore bit of this in 8.10 it only got 3 packages - and did not reinstall of the above listed - or any of the many others.

    so my question is - does anyone have a method with which i can capture all of the packages i have installed - and then use that list to reinstall them (or their 8.10 versions) on 8.10.
    Tony - Happy to try to help.
    Unless otherwise stated - all code posted by me is untested. Remember to Mark the Thread as Solved.
    Ubuntu user number # 24044 Projects : TimeWarp - on the fly Backups

  2. #2
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: installing the same packages i already have

    I haven't tried this, so I don't know how well it will work, or if it will work at all, but with
    Code:
    aptitude search ~i
    you will get a list of all installed packages. Change the output format to only show the package names and put it in a file:
    Code:
    aptitude -F '%p' search ~i > packages.txt
    Then, theoretically you should be able to install those packages on the other Ubuntu installation with
    Code:
    sudo aptitude install $( < packages.txt )

  3. #3
    Join Date
    May 2008
    Location
    UK
    Beans
    1,450
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: installing the same packages i already have

    Thank you - I had to do a
    Code:
    sudo apt-get update
    before it would find the packages.

    but this does work - or so it seems.

    Thank you
    Tony - Happy to try to help.
    Unless otherwise stated - all code posted by me is untested. Remember to Mark the Thread as Solved.
    Ubuntu user number # 24044 Projects : TimeWarp - on the fly Backups

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
  •