Score:0

Is there a good apt syntax for installing an approximate package version?

cn flag
ti7

Sometimes I don't immediately know the full package version details, but I do know which major.minor version I'm after-
For example, say I have package foo-package with several versions of debs available in my repository, and I want to get 1.4.1~build1 while 1.5.1~build3 is also available

If I knew the complete version, I could install it as

apt install foo-package=1.4.1~build1

Is there a convenient syntax to only give 1.4 to fetch the lower package?

user535733 avatar
cn flag
Note for future readers: This is a corner case; an advanced use of apt. Most users never need to specify versions. Apt will happily figure out compatible versions for you.
Score:0
cn flag
ti7

It turns out this has nearly the same syntax as Gentoo, where I might use

emerge -aqv1 "=bar-baz/foo-package-1.4.*"
apt install foo-package='1.4.*'

Note this is only practical for testing as the package will be updated to the latest version it can be with the next apt upgrade unless pinned!

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.