How can I backup a locally-installed apt package?
I'm troubleshooting a NVIDIA driver issue and I would like to try removing package oem-fix-gfx-nvidia-ondemandmode
. I want to backup the package before I remove it, in case something really breaks. This package was installed by the laptop manufacturer (pre-installed Ubuntu) and I have no idea what it does, other than the fact that it's messing with my NVIDIA drivers. Nothing comes up by googling the package name.
Most options for "backing up apt packages" involve simply making lists of packages to download, which obviously is not going to work out for a locally-installed package. I also tried apt-clone, but that wasn't able to create a copy of this package either.
$ apt-cache policy oem-fix-gfx-nvidia-ondemandmode
oem-fix-gfx-nvidia-ondemandmode:
Installed: 1.4
Candidate: 1.4
Version table:
*** 1.4 100
100 /var/lib/dpkg/status
$ dpkg -L oem-fix-gfx-nvidia-ondemandmode
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/oem-fix-gfx-nvidia-ondemandmode
/usr/share/doc/oem-fix-gfx-nvidia-ondemandmode/changelog.gz
/usr/share/doc/oem-fix-gfx-nvidia-ondemandmode/copyright
apt-cache policy oem-fix-gfx-nvidia-ondemandmode
to the question by editing it.dpkg -L oem-fix-gfx-nvidia-ondemandmode
andfind /var/lib/dpkg/ -name "oem-fix-gfx-nvidia-ondemandmode.*"
and add their output to the question. I'm not sure is it same package or not, but there is some PPA with version 1.5.