Page 12 of 14 FirstFirst ... 21011121314 LastLast
Results 111 to 120 of 132

Thread: HowTo: Create a list of installed packages

  1. #111
    Join Date
    Dec 2007
    Beans
    8

    Re: HowTo: Create a list of installed packages

    Now, in 2012, I still use this very useful approach to backup a list of installed packages.

    Quote Originally Posted by Cynical View Post
    I found out how to do this recently and thought it might be helpful to some people. To output this information to a file in your home directory you would use,

    Code:
    dpkg --get-selections > installed-software
    And if you wanted to use the list to reinstall this software on a fresh ubuntu setup,

    Code:
    dpkg --set-selections < installed-software
    followed by

    Code:
    dselect
    UPDATE. There is one important difference: it is only possible to carry out the commands as superuser.
    So open a terminal and give in the following command:
    Code:
    sudo dpkg --get-selections > installed-software
    By doing so, you will get list of installed packages in the HOME directory, with the name "installed-software". Backup this file to an external hard disk, to another computer, etc. It is this file you neeed to use at another computer or at the same one after a fresh install of the same distro and version.

    After the fresh install, copy the file "installed-software" to the HOME directory of the new configuration. A next step is the installation of the package "dselect": that one will not be installed by default along with a fresh install. For this purpose, open a terminal and give in the following:
    Code:
    sudo apt-get install dselect
    For getting your favourite software after the fresh install, also use a terminal, with the following command:

    Code:
    sudo dpkg --set-selections < installed-software
    followed by

    Code:
    sudo dselect
    As I said before, you can do so with a view to installing the same packages after a fresh install of the same distro and version: either at the same computer or at another one. !!! If you want to create a similar configuration after an upgrade, act as follows:
    first upgrade;
    than carry out the instructions summarised here.
    Why: during each upgrade, several packages will be obsolete, added, removed, etc.

    Respectfully yours,
    Bas Roufs.
    Last edited by Bas Roufs; September 23rd, 2012 at 04:28 PM. Reason: To add important details and clarifications.

  2. #112
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HowTo: Create a list of installed packages

    Here's another one. To get all packages that were installed by the user without descriptions and other markings, use

    Code:
    aptitude search '!~M ~i' -F '%p'
    .
    Save them to a file:
    Code:
    aptitude search '!~M ~i' -F '%p' > packages.txt
    .

    You can simply apt-get install the list next time you install Ubuntu.
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

  3. #113
    Join Date
    Dec 2007
    Beans
    8

    Re: HowTo: Create a list of installed packages

    Quote Originally Posted by Bas Roufs View Post
    Now, in 2012, I still use this very useful approach to backup a list of installed packages.....
    Shortcut to this page:
    http://bit.ly/OYQsls

  4. #114
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,749
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: HowTo: Create a list of installed packages

    Quote Originally Posted by Bas Roufs View Post
    Shortcut to this page:
    http://bit.ly/OYQsls
    You could just provide the full url since there is no limitation in forums.
    de gustibus et coloribus non est disputandum -- Wiktionary

  5. #115
    Join Date
    Sep 2009
    Beans
    21

    Re: HowTo: Create a list of installed packages

    Much better than "--get-selections", you can create a list of all installed packages, along with package version and short description:

    Code:
    dpkg -l > packages.2013-05-10
    replace "2013-05-10" with today's date so in time you can check which versions were installed each time you issued the above command line.
    Last edited by GrayBear; May 10th, 2013 at 08:39 AM.

  6. #116
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    1,854
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: HowTo: Create a list of installed packages

    Gray Bear How do you use your file to reinstall them?

  7. #117
    Join Date
    Apr 2007
    Beans
    45

    Re: HowTo: Create a list of installed packages

    I just installed 13.04 and I had a package list of add-ons that I created and it got deleted (though all the packages were installed prior). What I'd like to do is figure out how to get a list of all packages that I added.

    Is there a place I can get a list of default installed packages for 13.04 (I saw people post them for other releases of Ubuntu)?

    Someone said to use the following to determine what packages were added post install, but it had things on the list like "gzip" which I know I did not install post-install and were installed as part of the installation, so something is wrong with this output.

    aptitude search '!~M ~i' -F '%p'


    Stuart

  8. #118
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,749
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: HowTo: Create a list of installed packages

    Quote Originally Posted by stuartbh View Post
    ...
    Is there a place I can get a list of default installed packages for 13.04...?
    ...
    See if http://packages.ubuntu.com/raring/ubuntu-desktop helps.

    Also look through /var/log/apt/history.log for more. After a while the older logs will be compressed. But you can copy them over to your home folder and uncompress them.
    de gustibus et coloribus non est disputandum -- Wiktionary

  9. #119
    Join Date
    Apr 2007
    Beans
    45

    Re: HowTo: Create a list of installed packages

    Vasa1,

    Thank you so very much, your suggestion of looking in history.log is most helpful!!! I figured there had to be an apt-get install log somewhere, you saved me hunting it down.

    I also resolved to do another install of ubuntu-gnome into a virtual machine, will update it, and then take a dpkg --get-selections > installed-software to find out what it put there to start with.


    Stuart

  10. #120
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HowTo: Create a list of installed packages

    Is there a way to get the list of installed packages, EXCLUDING the dependencies? Like only the main apps and tools?

    It would be convenient for looking through the list and making changes. Otherwise you have a thousand dependency packages with which you don't know what do to.
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

Page 12 of 14 FirstFirst ... 21011121314 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
  •