Page 6 of 14 FirstFirst ... 45678 ... LastLast
Results 51 to 60 of 132

Thread: HowTo: Create a list of installed packages

  1. #51
    Join Date
    Apr 2006
    Location
    UK
    Beans
    6,646
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: Create a list of installed packages

    Quote Originally Posted by unutbu View Post
    And then there are also the GPG keys stored in /etc/apt/trustdb.gpg... So, I figured what the heck, just save the entire /etc/apt directory ...
    Good point.

    I'd forgotten that.

  2. #52
    Join Date
    Oct 2007
    Beans
    54
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HowTo: Create a list of installed packages

    I had just saved /etc/apt/sources.list and was going to post this, but the point about the keys hadn't occurred to me either - so thanks for that!

  3. #53
    Join Date
    Sep 2006
    Location
    São Paulo, Brazil
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HowTo: Create a list of installed packages

    Hi. Two questions:
    1) Does it work if any of applications was installed from a deb package downloaded directly to disk?
    2) Do I need to setup any alternative repository before try reinstall ?

    anyway, that's indeed a very interesting hack. Thanks.
    Ciro
    ---------------------------------------
    Dell Mini 9, 1GB RAM, 8GB SSD

  4. #54
    Join Date
    Sep 2006
    Location
    São Paulo, Brazil
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HowTo: Create a list of installed packages

    forget about this. I didn't read all the posts before this one...
    Ciro
    ---------------------------------------
    Dell Mini 9, 1GB RAM, 8GB SSD

  5. #55
    Join Date
    Mar 2009
    Location
    Sofia
    Beans
    2
    Distro
    Ubuntu

    Re: HowTo: Create a list of installed packages

    thanks man

    :fish: :fish:

  6. #56
    Join Date
    Aug 2008
    Location
    germany
    Beans
    857

    Re: HowTo: Create a list of installed packages

    Quote Originally Posted by unutbu View Post
    And then there are also the GPG keys stored in /etc/apt/trustdb.gpg.
    Actually, you should save your keyring rather than the database, due to the same reason your sources.list gets updatet with a new release.

    Your reimportable keyring is
    /etc/apt/trusted.gpg
    apt-key add <path-to-backed-up>/trusted.gpg
    and you're fine after a new release or whatever.

    You could make a symlink for instance so you won't miss is when backin up...



    @simon: me too in the meanwhile. Bootstrapping from a running system into a chroot is very nice too imho.

  7. #57
    Join Date
    May 2005
    Beans
    36

    Re: HowTo: Create a list of installed packages

    This bash snippet will download the .deb package files for all installed packages on your system. Useful if you've deleted them from /var/cache/apt/archives/ with `apt-get clean` and if you want the package files for any reason.

    Code:
    dpkg --get-selections | awk '{ print $1};' | while read package; do apt-cache show "$package"| wget -c 'http://ae.archive.ubuntu.com/ubuntu/'`sed -ne '/^Filename/s/^Filename: //p'`; done
    Last edited by mfyahya; June 15th, 2009 at 04:27 AM.

  8. #58
    Join Date
    Aug 2009
    Location
    PA
    Beans
    2
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HowTo: Create a list of installed packages

    Can this be done to show installed version levels, instead of just package names?

    Thanx!

  9. #59
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HowTo: Create a list of installed packages

    cw8jw, open a terminal (Applications>Accessories>Terminal) and type
    Code:
    aptitude -F '%?p %?V' search '~i'
    You'll see output like this:
    Code:
    a2ps                                                                    1:4.14-1
    acl                                                                     2.2.47-2
    acpi                                                                1.1-1ubuntu1
    acpi-support                                                    0.114-0intrepid2
    ...

  10. #60
    Join Date
    Jul 2006
    Location
    Costa Rica and West Texas
    Beans
    69
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HowTo: Create a list of installed packages

    I used this method to transfer all my installed apps over when I did a clean install of Karmic. The problem is that it also installs all the old kernels you might have installed and other system stuff that might not be compatible. The worst thing was that it installed grub 1 and uninstalled grub 2 so that a later kernel update failed because it was trying to update menu.lst which no longer exists in grub 2. It would be nice if there were an easy way to just reinstall apps and leave system stuff alone.

Page 6 of 14 FirstFirst ... 45678 ... LastLast

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
  •