top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to obtain list of installed packages on Ubuntu System?

0 votes
656 views

I believe that this question gets asked from time to time, but I do not know that a solution has been found.

The question is this; does a utility exist, that can be ran, to produce a list of installed packages, in a way that can be used by a user (system administrator), to perform a system rebuild, so as to, after installing the system again, ensure that all of the optional packages that were previously installed, are again installed in the new system installation?

I am running UbuntuMate 15.10, on a system with other Linux operating system versions (which are inappropriate for the hardware), that are not used, installed, and, with wanting to eliminate them, and, repartition the HDD, for a number of reasons, including occasionally seeing an error message that states that the partitioning is out of alignment, or something (I am not sure of the exact message, or, how to reproduce the error message), I believe that a new installation of the operating system, is needed, but, I want to again, have all of the existing installed optional packages, installed and operable.

So, I figure that, if a utility exists, that can produce a list of the installed optional packages, that could help me to reproduce the system, with its current functionality, in terms of the currently installed, optional packages.

posted May 10, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
$ apt-get package list

1 Answer

0 votes

I believe that a new installation of the operating system, is needed

If the Linux install isn't broken, but e.g. the partitioning is that broken, that it can't be repaired without repartitioning the complete
HDD, you still could make a backup of the complete Linux install and after repartitioning, restore the complete install from the backup. A backup could be made without any special tool, a simple cp (copy) or tar does work, you only need to do it from another Linux install, e.g. from a live media, with root privileges.

answer May 10, 2016 by Ramakrishnan
Try would the following work?
$ sudo dpkg --get-selections
This works:

$ dpkg-query -l * | grep ^ii
Similar Questions
+2 votes

I want to list all the application installed on ubuntu with date

dpkg -l this command list only installed application i want installed date

+1 vote

I have some legacy binary code. Is there a way to run it on a current 64bit ubuntu system?

~$ file y
y: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
~$ ./y
-bash: ./y: No such file or directory
0 votes

I am wondering how - or more exactly where - umask is defined on a stock Ubuntu server system.

I have reactivated the root account. Here's the respective default umask for root and normal users:

Nomal User:

$ umask
0002

Root User

$ umask
0022

On RHEL/CentOS, these values are defined in /etc/bashrc and then in the individual ~/.bashrc files. How does Ubuntu handle this?

0 votes

I have an Ubuntu VDI image (created through Virtual box) in one laptop and want to install Ubuntu on bare metal using this VDI image.
Is it possible ?

...