Dpkg find manually installed packages
$ dpkg --get-selections Manually Installed. I found the above answers to be inadequate as my history log was incomplete and I didn't want to do the work to separate built-in packages with manually installed packages. However, this solution did the trick of showing only manually initiated installed www.doorway.rus: 1. I want to have a list of all packages that are installed on my server, but the command. dpkg --get-selections ~/www.doorway.ru doesn't do anything! When I execute it there is no file called "www.doorway.ru" in the root www.doorway.rus: 2. Gives all manually installed packages (not system packages, not dependencies). I have installed quite a few deb packages with dpkg and a few of the items I was particularly looking for were missing. A rather lengthy one liner, but convenient to copy and paste would be.
The following command will store the list of all installed packages on your Debian system to a file called packages_www.doorway.ru: sudo dpkg-query -f '${binary:Package} ' -W packages_www.doorway.ru Now that you have the list, you can install the same packages on your new server with: sudo xargs -a packages_www.doorway.ru apt install. #!/bin/bash # List of all packages currently installed current=$(dpkg -l | awk '{print $2}' | sort | uniq) # List of all packages that were installed with the system pre=$(gzip -dc /var/log/installer/www.doorway.ru | sed -n 's/^Package: //p' | sort | uniq) # List of packages that don't depend on any other package manual=$(apt-mark showmanual | sort | uniq) # (Current - Pre) ∩ (Manual) packages=$(comm <(comm <(echo "$current") <(echo "$pre")) <(echo "$manual")) for pack in. Apt-mark includes packages which were manually installed via use of the 'dpkg' system directly by users, not just ones installed via users through their package manager utility (Apt, Synaptic, Software Center, etc.). If you lack the apt-mark utility, you can tell it do just do the history inspection instead. See the GitHub page.
I installed a plain Ubuntu on my computer and installed some software via apt-get. Last week I managed to break everything and just started from. ১১ সেপ্টেম্বর, ২০২১ Here's how you can use Ubuntu's default package manager to get a list of packages currently installed on your system. You need to use the apt or apt-get or dpkg command to list all installed packages on an Ubuntu Linux server from the bash shell prompt.
0コメント