You are not logged in.

#1 2021-05-17 17:32:51

adrianmay
Member
Registered: 2017-12-19
Posts: 64

Get date of current arch system

Hi All,

I'd like to find out when I last updated my system.

I know you'll think "just update it then it's today" but the reason is to pin an archlinux docker image into which I'll squirt binaries I made on the host against its libraries. So if I update my system the Makefile will change the FROM line in the Dockerfile.

TIA, Adrian.

Offline

#2 2021-05-17 18:03:02

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Get date of current arch system

Look at the pacman log.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-05-17 18:24:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,501
Website

Re: Get date of current arch system

date -r /var/lib/pacman/sync/community.db

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2021-05-17 18:54:03

adrianmay
Member
Registered: 2017-12-19
Posts: 64

Re: Get date of current arch system

Ok I guess I asked the wrong question. What I want is the name of the docker image corresponding to what's on the host. Apparently they get made on Sundays and have a build number too. E.g.

archlinux:base-20201101.0.7893

This is what I'm trying to evaluate. The timestamp when I updated wouldn't be that.

TIA, Adrian.

Offline

#5 2021-05-17 18:56:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Get date of current arch system

adrianmay wrote:

Apparently they get made on Sundays

Who is making these images?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2021-05-17 19:05:08

adrianmay
Member
Registered: 2017-12-19
Posts: 64

Re: Get date of current arch system

Offline

Board footer

Powered by FluxBB