Results 1 to 5 of 5

Thread: dpkg --get-selections > ~/my-packages options

  1. #1
    Join Date
    Oct 2012
    Location
    Eugene, Or
    Beans
    227
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question dpkg --get-selections > ~/my-packages options

    Used "dpkg --get-selections > ~/my-packages" on my Laptop 32 bit to get copy of my packages to put on my Desktop 64 bit. dpkg also included my linux kernel 3.2.0-39 generic which installed on my Desktop 64 bit. is there way to exclude a kernel?? What other options are there besides dpkg??
    did everything from here
    http://ubuntuforums.org/showthread.php?t=1748541
    http://ubuntuforums.org/showthread.p...75#post7157175
    The Answer Please if at all Possible

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: dpkg --get-selections > ~/my-packages options

    To exclude specific kernel package:
    Code:
    dpkg --get-selections|sed '/^linux-image-3\.2\.0-39-/d' >my-packages
    To exclude all installed kernel packages:
    Code:
    dpkg --get-selections|sed '/^linux-image-[0-9]/d' >my-packages
    To exclude all kernel-related packages:
    Code:
    dpkg --get-selections|sed /^linux-/d >my-packages
    Last edited by schragge; March 26th, 2013 at 07:45 PM.

  3. #3
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: dpkg --get-selections > ~/my-packages options

    The list is just a text file.
    I go in and edit out kernels and a few old packages I know I do not want to reinstall or should have housecleaned before.

    If upgrading from an older version you may run into old version ran OpenOffice and new installs LibreOffice & you do not need both. Again just edit out of text file.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  4. #4
    Join Date
    Oct 2012
    Location
    Eugene, Or
    Beans
    227
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Re: dpkg --get-selections > ~/my-packages options

    ok thanks. one more question will this work From Ubuntu to Linux mint?? from one Distribution to a Different Distribution? 32 or 64 bit
    The Answer Please if at all Possible

  5. #5
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: dpkg --get-selections > ~/my-packages options

    It depends on repository and available programs by name, so I do not know about different distributions. Non-Debian based systems do not use apt, so they definitely will not work.

    But I used it to convert from 32bit to 64bit. The list is just the program names, not versions. Again with 32bit there may be some things you do not need to install in the 64 bit version. But if you have a lot of installed programs it greatly simplifies reinstalling them. It will not reinstall something already installed.

    The dpkg also includes depends, so list is very long. You can generate top level only lists, but they will not work easily as a list to reinstall.
    Top level only - no depends
    sudo apt-get install aptitude
    aptitude --disable-columns -F '%p' search '~i!~M!~R(~i)' > toplevel
    or
    aptitude search '?installed ?not(?reverse-depends(?installed))'

    You can also look at your server for the repositories and download the list of default apps.

    Look for manifests for version:
    http://releases.ubuntu.com/precise/
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







Tags for this Thread

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
  •