How can I see when a package was released/updated using `apt`?

Shuzheng

I want to install the "file" package using apt, since my Docker container is missing the file command. Before installing, I'm checking the package details (see below).

How can I see the date these packages were released/updated? Their descriptions say that they are supported for 5 years, but that makes no sense, when I cannot see when they were released/updated?

Also, why is apt listing two "file" packages? Which one of those would be installed, when I run apt install file?

root@eca1fcd5655a:/mnt/dotnetcore# apt show -a file
Package: file
Version: 1:5.32-2ubuntu0.3
Priority: important
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Christoph Biedl <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 81.9 kB
Depends: libc6 (>= 2.4), libmagic1 (= 1:5.32-2ubuntu0.3)
Homepage: http://www.darwinsys.com/file/
Task: minimal
Supported: 5y
Download-Size: 22.1 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
Description: Recognize the type of data in a file using "magic" numbers

Package: file
Version: 1:5.32-2
Priority: important
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Christoph Biedl <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 81.9 kB
Depends: libc6 (>= 2.4), libmagic1 (= 1:5.32-2)
Homepage: http://www.darwinsys.com/file/
Task: minimal
Supported: 5y
Download-Size: 22.1 kB
APT-Sources: http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: Recognize the type of data in a file using "magic" numbers
Stephen Kitt

The five-year support term applies to supported packages in Ubuntu LTS releases as a whole; when individual packages are released or updated doesn’t matter. Packages in the main repository receive publicly-available security updates for five years after the initial release of the distribution.

To see the latest changes to a package, look at its changelog:

zcat /usr/share/doc/${package}/changelog.Debian.gz | head -n 20

In this case, /usr/share/doc/file/changelog.Debian.gz.

You can also view a changelog without installing the package by using apt changelog:

apt changelog file

or look at the release information on the package’s page on Launchpad.

apt show -a lists two packages in your case because there are two versions available, one in the main repository, and another in the updates repository. The version which will be installed is the greater of the two, the version from the updates repository.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

R testthat package: How can I see output from message() when using test_file()

From Dev

How can I see when package has been upgraded?

From Dev

How can I see the command string when using MySqlCommand parameters?

From Dev

How can I see a timestamp for when a command was executed using history?

From Dev

How can I install the latest apt package for Cockpit with apt?

From Dev

How can I stop Apt from marking packages as manual when you run the "apt install <package which is already there>" command?

From Dev

How can I see which versions (platform/version/abi) of a package are available using pip3?

From Dev

Can I see why apt-get install -f is removing my package?

From Dev

apt returns "E: Unmet dependencies" when I try to install a package, how can I diagnose the issue and find out why it occurs?

From Dev

How can I keep track of all the packages / dependencies that are installed when I run apt-get for a specific package?

From Dev

How can I tell whether a package was installed by dpkg or apt?

From Dev

How can I tell whether a package was installed by dpkg or apt?

From Dev

How to find out which versions of a package can I install on APT

From Dev

How can I fix error during install a package with APT in Ubuntu

From Dev

How can I see all packages that depend on a certain package with PIP?

From Dev

How can I see the list of methods in a Julia Package

From Dev

How can I see all versions of a package that are available in the archive?

From Dev

How can I see which package manager is running?

From Dev

How can I see all versions of a package that are available in the archive?

From Dev

How can I see all packages that depend on a certain package with PIP?

From Dev

How can I see complete package name in dpkg -l

From Dev

How do I see what requires a package using yarn?

From Dev

How to see when a package was installed?

From Dev

How can I see more battery info when using Gnome shell?

From Dev

How can I see console.log output in a node express app when using nginx + passenger

From Dev

How can I see the json coming from the client when using Spring-MVC?

From Dev

How can I see printf output when evaluating an expression using the `expr` command in lldb?

From Dev

How can I see more battery info when using Gnome shell?

From Dev

How can I see the details when I mouseover on a specific box?

Related Related

  1. 1

    R testthat package: How can I see output from message() when using test_file()

  2. 2

    How can I see when package has been upgraded?

  3. 3

    How can I see the command string when using MySqlCommand parameters?

  4. 4

    How can I see a timestamp for when a command was executed using history?

  5. 5

    How can I install the latest apt package for Cockpit with apt?

  6. 6

    How can I stop Apt from marking packages as manual when you run the "apt install <package which is already there>" command?

  7. 7

    How can I see which versions (platform/version/abi) of a package are available using pip3?

  8. 8

    Can I see why apt-get install -f is removing my package?

  9. 9

    apt returns "E: Unmet dependencies" when I try to install a package, how can I diagnose the issue and find out why it occurs?

  10. 10

    How can I keep track of all the packages / dependencies that are installed when I run apt-get for a specific package?

  11. 11

    How can I tell whether a package was installed by dpkg or apt?

  12. 12

    How can I tell whether a package was installed by dpkg or apt?

  13. 13

    How to find out which versions of a package can I install on APT

  14. 14

    How can I fix error during install a package with APT in Ubuntu

  15. 15

    How can I see all packages that depend on a certain package with PIP?

  16. 16

    How can I see the list of methods in a Julia Package

  17. 17

    How can I see all versions of a package that are available in the archive?

  18. 18

    How can I see which package manager is running?

  19. 19

    How can I see all versions of a package that are available in the archive?

  20. 20

    How can I see all packages that depend on a certain package with PIP?

  21. 21

    How can I see complete package name in dpkg -l

  22. 22

    How do I see what requires a package using yarn?

  23. 23

    How to see when a package was installed?

  24. 24

    How can I see more battery info when using Gnome shell?

  25. 25

    How can I see console.log output in a node express app when using nginx + passenger

  26. 26

    How can I see the json coming from the client when using Spring-MVC?

  27. 27

    How can I see printf output when evaluating an expression using the `expr` command in lldb?

  28. 28

    How can I see more battery info when using Gnome shell?

  29. 29

    How can I see the details when I mouseover on a specific box?

HotTag

Archive