Get a list of installed packages from a corrupted partition


Matt Mo

I'm running 13.04 on VMWare Fusion 6 on top of OS X, which has some serious stability issues and has to do a hard reboot (reboot) at least once a day, if not more.

Since VMWare is lame and doesn't always write disk data to disk, virtual machines are vulnerable to corruption when someone reboots the computer without shutting down the VM.

Anyway, I got a virtual disk from the old VM and I can mount it on the new install, but I don't know how to get the list of installed packages since dpkgit's looking at its new database and doesn't care about the old one.

The old partition had a lot of problems, corrupted files, etc, so I couldn't just move ddit to the new location. I think the easiest way to do this is to compile the list of packages added after installation and then feed it to dpkgand , apt-getas shown in this answer . My only problem is generating the package list. Can someone help?

Gregory Margo

If you can mount the virtual disk enough to see the /var/lib/dpkg/ directory, you can use the "--admindir" option to tell dpkg to look in that directory .

dpkg --admindir=/mountpoint/var/lib/dpkg --list

The only file really needed is /var/lib/dpkg/status (or one of its backups). So you can copy individual files to an empty directory and point dpkg to that directory.

Related


Get a list of installed packages from a corrupted partition

Matt Mo I'm running 13.04 on VMWare Fusion 6 on top of OS X, which has some serious stability issues and has to do a hard reboot (reboot) at least once a day, if not more. Since VMWare is lame and doesn't always write disk data to disk, virtual machines are vu

Get a list of installed packages from a corrupted partition

Matt Mo I'm running 13.04 on VMWare Fusion 6 on top of OS X, which has some serious stability issues and has to do a hard reboot (reboot) at least once a day, if not more. Since VMWare is lame and doesn't always write disk data to disk, virtual machines are vu

Get list of packages installed in Anaconda

Regi Mathew: I've loaded many packages into Anaconda that I've been using for a while. Right now, I can't keep track of it. How can we get a list of all packages loaded in Anaconda (windows10)? What is the command? Cons of Reblochon Mask: In a terminal, type:

Get list of packages installed in Anaconda

Regi Mathew: I've loaded many packages into Anaconda that I've been using for a while. Right now, I can't keep track of it. How can we get a list of all packages loaded in Anaconda (windows10)? What is the command? Cons of Reblochon Mask: In a terminal, type:

List of executables installed from packages

Omar Darwish In Linux, how do I see all new executables added to a /usr/binpackage by installing it sudo apt-get install <package>? Specifically, I'm trying to find out which is the main executable used by the texlive package. I tried that, dpkg -L texlivebut

List of executables installed from packages

Omar Darwish In Linux, how do I see all new executables added to /usr/binby installing a package sudo apt-get install <package>? Specifically, I'm trying to figure out which is the main executable for the texlive package. I tried that, dpkg -L texlivebut only

List of executables installed from packages

Omar Darwish In Linux, how do I see all new executables added to a /usr/binpackage by installing it sudo apt-get install <package>? Specifically, I'm trying to find out which is the main executable used by the texlive package. I tried that, dpkg -L texlivebut

Get a list of all installed packages in Go

PhD How to list all installed packages via goinstall? I need to reinstall all packages installed on one computer to another. Jesta There is a list under $GOROOT/goinstall.log. If you want to install all packages on another computer, just copy the files and run

How to get a list of installed packages without dependencies?

Zuba The Software Center somehow shows a short list of installed packages. How can I get it in a text file? I tried: > dpkg --get-selections|wc -l 3265 > aptitude search '~i!~M'|wc -l 1181 > dpkg -l | grep ^ii | sed 's_ _\t_g' | cut -f 2|wc -l 3076 > dpkg

How to get only a list of installed library packages?

Avinash Raj I just want to get a list of installed library packages from the terminal. Is there any order? Linz wind /sbin/ldconfig -p The -v option will display the version of the library. result: 267 libs found in cache `/etc/ld.so.cache' libz.so.1

pacman - get a list of user-installed packages

Priest How can I get a list of packages explicitly installed by the user? I know: pacman -Qe pacman -Qi But these seem to include the default packages I distribute (e.g. sudo). I just want to list the packages installed by the user using "pacman -Syu newpacka

Is it possible to get a list of the latest installed packages?

Olivier Lalonde Is it possible to get a list of recently installed packages via apt-get? Isaiah Command to list recently installed packages installed via any method ( apt-get, Software Center, etc.) : grep " install " /var/log/dpkg.log Example output: 2010-12

Get a list of packages not installed on a Debian system

casino I am writing a script to print a list of packages that are not installed. #!/bin/bash declare -a LIST_OF_PACKAGES=("php5" "nginx") for i in "${LIST_OF_PACKAGES[@]}" do PACKAGE_STATUS=`dpkg-query -W -f='${Status} ${Version}\n' $i | grep --line-

How to get only a list of installed library packages?

Avinash Raj I just want to get a list of installed library packages from the terminal. Is there any order? Linz wind /sbin/ldconfig -p The -v option will display the version of the library. result: 267 libs found in cache `/etc/ld.so.cache' libz.so.1

Get a list of all installed packages in Go

PhD How to list all installed packages via goinstall? I need to reinstall all packages installed on one computer to another. Jesta There is a list under $GOROOT/goinstall.log. If you want to install all packages on another computer, just copy the files and run

pacman - get a list of user-installed packages

Priest How can I get a list of packages explicitly installed by the user? I know: pacman -Qe pacman -Qi But these seem to include the default packages I distribute (e.g. sudo). I just want to list the packages installed by the user using "pacman -Syu newpacka

How to get only a list of installed library packages?

Avinash Raj I just want to get a list of installed library packages from the terminal. Is there any order? Linz wind /sbin/ldconfig -p The -v option will display the version of the library. result: 267 libs found in cache `/etc/ld.so.cache' libz.so.1

Get a list of packages not installed on a Debian system

casino I am writing a script to print a list of packages that are not installed. #!/bin/bash declare -a LIST_OF_PACKAGES=("php5" "nginx") for i in "${LIST_OF_PACKAGES[@]}" do PACKAGE_STATUS=`dpkg-query -W -f='${Status} ${Version}\n' $i | grep --line-

Homebrew: List packages installed from tap?

Ivan Over time, I have installed many packages for Homebrew, mostly from the default formula repository ( homebrew -core ), and others from brew tap. Now, I've put together some installation scripts to make my development environment more reproducible, and I'm

Homebrew: List packages installed from tap?

Ivan Over time, I have installed many packages for Homebrew, most of them from the default formula repository ( homebrew -core ), and others from brew tap. Now, I've put together some install scripts to make my development environment more reproducible, and I'

Homebrew: List packages installed from tap?

Ivan Over time, I have installed many packages for Homebrew, most of them from the default formula repository ( homebrew -core ), and others from brew tap. Now, I've put together some install scripts to make my development environment more reproducible, and I'

List installed packages from setup.py

Balint Pato We have multiple versions of the package: package1and package1-unstable- similar to tensorflowand tf-nightly. These are different packages on PyPi, but the same modules are installed. This can cause problems when installing the two packages because

Homebrew: List packages installed from tap?

Ivan Over time, I have installed many packages for Homebrew, most of them from the default formula repository ( homebrew -core ), and others from brew tap. Now, I've put together some install scripts to make my development environment more reproducible, and I'

Homebrew: List packages installed from tap?

Ivan Over time, I have installed many packages for Homebrew, mostly from the default formula repository ( homebrew -core ), and others from brew tap. Now, I've put together some installation scripts to make my development environment more reproducible, and I'm

Samba cannot be installed due to corrupted packages

Padre D727 I'm running Ubuntu Server 14.04.4 without installing Samba using the original OS installer. I want to install it now, but I keep getting errors about broken packages. It seems that the main hangup is the samba-libs dependency. As the saying goes: "

Samba cannot be installed due to corrupted packages

Padre D727 I'm running Ubuntu Server 14.04.4 without installing Samba using the original OS installer. I want to install it now, but I keep getting errors about broken packages. It seems that the main hangup is the samba-libs dependency. As the saying goes: "

Samba cannot be installed due to corrupted packages

Padre D727 I'm running Ubuntu Server 14.04.4 without installing Samba using the original OS installer. I want to install it now, but I keep getting errors about broken packages. It seems that the main hangup is the samba-libs dependency. As the saying goes: "