On Fri, Feb 17, 2017 at 03:54:22AM -0500, Felix Miata wrote: > I forgot to hold the non-broken mc version 4.8.17 before upgrading, so want > to revert to the older packages in the cache: > # ll /var/cache/apt/archives/mc* > -rw-r--r-- 1 root root 510906 May 8 2016 mc_3%3a4.8.17-1_amd64.deb > -rw-r--r-- 1 root root 512534 Oct 16 19:06 mc_3%3a4.8.18-1_amd64.deb > -rw-r--r-- 1 root root 1265158 May 8 2016 mc-data_3%3a4.8.17-1_all.deb > -rw-r--r-- 1 root root 1267428 Oct 16 19:06 mc-data_3%3a4.8.18-1_all.deb > > Nothing I try found via searching the web, e.g. "debian revert package" > chttps://www.google.com/search?q=debian+revert+package+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial > can seem to locate any version of mc except 4.8.18, whether apt-get, > aptitude, apt-cache, etc. What's the secret to finding the right version > string, and which command?
If what you mean is, you want to install 4.8.17-1 from the .deb you have in your cache, it's simply dpkg -i /var/cache/apt/archives/mc_3%3a4.8.17-1_amd64.deb \ /var/cache/apt/archives/mc-data_3%3a4.8.17-1_all.deb dpkg works directly with packages; apt-get works with repositories. To install a .deb with apt-get you would need to onstruct a repository which is a bit overkill for this purpose. I think it might be possible to install .debs with aptitude or the apt(1) tool, but I am not sure. One disadvantage of using dpkg directly is it will not resolve package dependencies for you, but in your case I think you likely have them all installed already.
signature.asc
Description: Digital signature