[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is there an easy way to get the latest version number of a source package that is available?



On 6/27/22 10:31, Tim Woodall wrote:
Hi,

apt-get --only-source --download-only source <package>

will download the latest version of the source package.

Is there a one liner that will give me the version of the package
(including the epoch) without downloading the package and parsing the
dsc?



Tim.


I use 2 aliases that have server me well (almost daily).

Search for any pattern of package names:

alias al='apt list | grep '

Search for only installed package names:

alias ali='apt list --installed | grep '

al linux-im gives me this:


linux-image-5.10.0-8-amd64/now 5.10.46-4 amd64 [installed,local]
linux-image-5.14.0-3-amd64/now 5.14.12-1 amd64 [residual-config]
linux-image-5.15.0-2-amd64/now 5.15.5-2 amd64 [installed,local]
linux-image-5.15.0-3-amd64/now 5.15.15-2 amd64 [installed,local]
linux-image-5.18.0-2-amd64-dbg/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-amd64-unsigned/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-amd64/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-cloud-amd64-dbg/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-cloud-amd64-unsigned/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-cloud-amd64/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-rt-amd64-dbg/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-rt-amd64-unsigned/testing,unstable 5.18.5-1 amd64
linux-image-5.18.0-2-rt-amd64/testing,unstable 5.18.5-1 amd64
linux-image-amd64-dbg/testing,unstable 5.18.5-1 amd64
linux-image-amd64-signed-template/testing,unstable 5.18.5-1 amd64
linux-image-amd64/testing,unstable 5.18.5-1 amd64
linux-image-cloud-amd64-dbg/testing,unstable 5.18.5-1 amd64
linux-image-cloud-amd64/testing,unstable 5.18.5-1 amd64
linux-image-rt-amd64-dbg/testing,unstable 5.18.5-1 amd64
linux-image-rt-amd64/testing,unstable 5.18.5-1 amd64

and ali linux-im


linux-image-5.10.0-8-amd64/now 5.10.46-4 amd64 [installed,local]
linux-image-5.15.0-2-amd64/now 5.15.5-2 amd64 [installed,local]
linux-image-5.15.0-3-amd64/now 5.15.15-2 amd64 [installed,local]


--


...Bob

Reply to: