I've been learning about Linux package management recently (https://superuser.com/questions/393681/how-to-find-out-which-versions-of-a-package-can-i-install-on-apt, https://askubuntu.com/questions/340530/how-can-i-check-the-available-version-of-a-package-in-the-repositories, Why do different Linux distros have different package formats (and package managers)?, https://itsfoss.com/ubuntu-repository-mechanism/, https://itsfoss.com/sources-list-ubuntu/)
If I understand correctly, /etc/apt/sources.list
(and .list
/.sources
files in /etc/apt/sources.list.d/
) controls where apt-get
(and related utilities) get packages/source code from.
Since my current release is jammy, I have entries in my sources.list
such as the following:
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted
...which I think means that (after running apt-file update
) apt-cache policy libuv1
will look for all available versions of libuv1
at http://archive.ubuntu.com/ubuntu/dists/jammy/main/
$ apt-cache policy libuv1
libuv1:
Installed: 1.43.0-1
Candidate: 1.43.0-1
Version table:
*** 1.43.0-1 500
500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
$
$ apt-cache madison libuv1
libuv1 | 1.43.0-1 | http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libuv1 | 1.43.0-1 | http://archive.ubuntu.com/ubuntu jammy/main Sources
$
My question is: is there a way to query available versions of the libuv1
package for releases other than jammy without editing sources.list
?
From the above apt-cache
output, it appears that 1.43.0-1 is the only version available - both as a package and as source. But I know the libuv authors have newer versions. I'd like to learn whether I can query non-jammy package repositories for availability of newer libuv1
packages or source. Out of an excess of caution, I am nervous about adding entries like deb-src http://archive.ubuntu.com/ubuntu/ mantic main restricted
to sources.list
because I'm afraid I might forget, then later carelessly run apt-get upgrade
-- wouldn't that then run the risk of creating a FrankenDebian?
I only want to find out -- if only for curiosity's sake -- whether newer versions of libuv1
source/packages exist in releases other than my current, without the risks incurred by editing sources.list
-- is there a way? Put another way: is it necessary to edit sources.list
both to query availability and install packages, or is it possible to query package availability without editing the file?
noble
has 1.46.0-2 available as source and package. I wonder if you could comment on something I alluded to in my question: since my current Linux distribution/release isjammy
, if I were to twiddle anything (e.g./etc/apt/sources.list
) such thatapt-get
were to fetch packages (libuv1
or otherwise) fromnoble
, I would be creating a FrankenDebian (https://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian) -- is that correct? – StoneThrow Jan 05 '24 at 17:30