DEBSNAP(1)
π DEBSNAP β retrieve old snapshots of Debian packages π
okay bestie, gather round, because debsnap is genuinely one of those little tools that EATS. it lives in the DebSnap User Manual and it's here to help you rescue ancient versions of Debian packages from the void. let's get into it π«Ά
β¨ SYNOPSIS β¨
debsnap [options] package [version]
debsnap [-h | --help] [--version]
πΈ DESCRIPTION πΈ
so. debsnap is a tool to help with retrieving snapshots of old packages from a daily archive repository. like, the archive is basically a time machine and this is your keys π
the only publicly available snapshot archive is currently located at https://snapshot.debian.org β that's the one, that's the moment, periodt.
by default, debsnap will download all the available versions for package that are found in the snapshot archive. but if you specify a version, only that particular version will be downloaded, if available. no more, no less, no crumbs left behind π
π OPTIONS π
the following options are available, and yes we're going through every single one because we don't skip:
-ddestination,--destdirdestination β directory to place retrieved packages. that's the drop-off spot π¦-f,--forceβ force writing into an existing destination. by defaultdebsnapwill insist the destination directory does not exist yet, unless it is explicitly specified to be.(the current working directory). why so strict? because it's trying to avoid files being accidentally overwritten by what is fetched from the archive, and to provide a guarantee for other scripts that only the files fetched will be present there upon completion. she's protecting you from yourself, respectfully π‘οΈ-v,--verboseβ report on thedebsnapconfiguration being used and progress during the download operation. and listen: please always use this option when reporting bugs. i'm not asking, i'm telling π-l,--listβ don't download, just list versions. window shopping only, no commitment ποΈ--binaryβ download binary packages instead of source packages.-a,--architectureβ specify architecture of downloaded binary packages. implies--binary. this can be given multiple times in order to download binary packages for multiple architectures. stack 'em up, bestie π§--firstβ specify the minimum version of a package which will be downloaded. any versions which compare larger than this, according todpkg, will be considered for download. may be used in combination with--last.--lastβ specify the maximum version of a package which will be downloaded. any package versions which compare less than this, according todpkg, will be considered for download. may be used in combination with--first.-h,--helpβ show a summary of these options. (hi, that's this, kind of π)--versionβ show the version ofdebsnap.
π CONFIGURATION OPTIONS π
okay so you can also configure debsnap through the use of the following options in the devscripts configuration files. no CLI required, she reads the vibes:
DEBSNAP_VERBOSEβ same as the command line option--verbose. set toyesto enable.DEBSNAP_DESTDIRβ set a default path for the destination directory. if unset,./source-<package_name>will be used. the command line option--destdirwill override this. CLI stays winning πDEBSNAP_BASE_URLβ the base url for the snapshots archive.
if unset this defaults to https://snapshot.debian.org
π₯ EXIT STATUS π₯
debsnap will return an exit status of:
0β if all operations succeeded1β if a fatal error occurred2β if some packages failed to be downloaded but operations otherwise succeeded as expected
heads up bestie: in some cases packages may fail to be downloaded because they are no longer available on the snapshot mirror, so any caller should expect this may occur in normal use. it's not a bug, it's the archive being the archive π
π EXAMPLES π
these are the actual real commands, copy them exactly, no notes:
debsnap -a amd64 xterm 256-1 download the binary package of a specific xterm version for amd64 architecture.
debsnap -a armel xterm download binary packages for all versions of xterm for armel architecture.
debsnap --binary xterm 256-1 download binary packages for a specific xterm version but for all architectures.
debsnap --binary xterm download binary packages for all versions of xterm for all architectures. she's doing the MOST and we love her for it.
debsnap -v --first 347-1 --last 348-2 xterm download source packages for local architecture of xterm, between 347-1 and 348-2 revisions, inclusive, showing the progress when doing it.
aptitude search '~i' -F '%p %V' | while read pkg ver; do debsnap -a $(dpkg-architecture -qDEB_HOST_ARCH) -a all $pkg $ver; done
download binary packages of all packages that are installed on the system. yeah, all of them. main character energy fr fr π
π¦ FILES π¦
/etc/devscripts.confβ global devscripts configuration options. will override hardcoded defaults.~/.devscriptsβ per-user configuration options. will override any global configuration.
β SEE ALSO β
devscripts(1), devscripts.conf(5), git-debimport(1)
π AUTHORS π
David Paleino <dapal@debian.org>
πΈ COPYRIGHT πΈ
Copyright Β© 2010 David Paleino
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or (at your option) any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
π BUGS π
Reporting bugs
the program is part of the devscripts package. please report bugs using
reportbug devscripts
okay that's the whole page, you're officially a debsnap girlie now. go forth and recover those ancient packages, bestie πβ¨
this lil masterpiece came from Debian devscripts, dated July 3, 2010. mwah, no cap π
π¦ where this page comes from
- debian bookworm: devscripts 2.23.4+deb12u2 Β· GPL-2.0-or-later
- debian trixie: devscripts 2.25.15+deb13u1 Β· GPL-2.0-or-later
- epel 10: devscripts 2.25.5-1.el10_1 Β· GPL-2.0-or-later
- epel 9: devscripts 2.25.5-1.el9 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.19-2.fc43 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.33-1.fc43 Β· GPL-2.0-or-later
- fedora 44: devscripts 2.26.5-1.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- ubuntu noble: devscripts 2.23.7 Β· GPL-2.0-or-later
- ubuntu noble: devscripts 2.23.7ubuntu0.2 Β· GPL-2.0-or-later
- ubuntu questing: devscripts 2.25.19ubuntu2
- ubuntu resolute: devscripts 2.26.7 Β· GPL-2.0-or-later
- ubuntu stonking: devscripts 2.26.11ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms