TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2019-12-23 12:52:00
subject: How to backup installed p

Hello all,

As I can't seem to repair the sound problems I'm having I'm pretty much
forced to reinstall everything from the ground up.   As such I'm also
looking at how to backup packages I'm going to (re)install.  The problem
with those is ofcourse their dependancies.

After a lot of googeling I stumbled over a way to get an installed packets
dependancies:

apt-cache
depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks
--no-replaces
 --no-enhances  | grep "^\w" | sort -u

The problem is that those are just the basic package names, while I need the
filenames as present in the "/var/cache/apt/archives/" folder.  Some further
searching gave me a way to get a filename from the package name:

apt-cache show  | grep Filename

The problem with this one is that although I get a filename, I sometimes
can't find it back in the above mentioned folder

For instance, "apt-cache show blues  | grep Filename" returns two filenames,
neither of which are in the cache: bluez_5.50-1+rpt1_armhf.deb and
bluez_5.50-1+b12_armhf.deb.  However, bluez-obexd_5.50-1+rpt1_armhf.deb is
(which is mentioned as a dependancy for "blueman").

Does anyone have any information to
1) why "apt-cache" returns filenames that do not exist in the cache (lots
and /lots/ of them)
2) how I can get "apt-cache" (or some other program) to return the names of
actually cached files

Regards,
Rudy Wieser

P.s.
If there is onother way to download packages /and its dependancies/ for
offline, later install I'd like to hear it (I've seen "apt-offline" being
mentioned, but got some "combersome" remarks).

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.