Is there a one-liner to find out the latest generic kernel release for Ubuntu LTS (20.04)?
Ideally running the one-liner on macOS, not on a Ubuntu server itself; asking so I can keep my deployment scripts updated.
Is there a one-liner to find out the latest generic kernel release for Ubuntu LTS (20.04)?
Ideally running the one-liner on macOS, not on a Ubuntu server itself; asking so I can keep my deployment scripts updated.
@froztbyte I want to deploy a specific version of the package.
@thomasfuchs “messy but doable”
You could pull the package archive metadata, unpack+read that, and compare (for this you’d need to keep state of remote version or compare at runtime)
there’s also apt commands but those would need execution somewhere that could run apt
Also you could have the host report its current and delta, then monitor the reports?
(Dunno what you’re trying to solve for, so just throwing ideas out)
If you have Docker installed on your Mac ...
docker run --rm -it ubuntu:20.04 /bin/sh -c '/usr/bin/apt -qq update && /usr/bin/apt show linux-image-generic' | awk '/Version/ { print $2 }'
@sean That seems extremely excessive wrt to resource usage
@thomasfuchs curl -s 'https://api.launchpad.net/devel/ubuntu/+archive/primary?ws.op=getPublishedBinaries&binary_name=linux-image-generic&distro_arch_series=https://api.launchpad.net/devel/ubuntu/focal/amd64&status=Published' | jq -r .entries[0].binary_package_version
@MrDOS thx, looks like that works :)
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.