Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #221945
| From | Roberto C. Sánchez <roberto@debian.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Package integration date into repository |
| Date | 2020-04-26 01:40 +0200 |
| Message-ID | <zZCyR-1Gp-1@gated-at.bofh.it> (permalink) |
| References | <zZA41-6t-5@gated-at.bofh.it> <zZAnn-sb-11@gated-at.bofh.it> <zZCyR-1Gp-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Apr 26, 2020 at 01:30:11AM +0200, l0f4r0@tuta.io wrote:
> Hi Marco,
>
> 25 avr. 2020 à 23:12 de talby@debianlists.mobilxpress.net:
>
> > To receive the date from the changelog is the closest I would know of, after I for myself have been searching for this in the past. I then constructed some ugly but well working CLI (bash) command:
> >
> > apt-get changelog PACKAGENAME 2> /dev/null| grep -m 1 "^ --" 2> /dev/null| cut -d'>' -f2 2> /dev/null| cut -c 3- 2> /dev/null | cut -d' ' --complement -s -f6 2> /dev/null
> >
> I didn't know about apt(-get) changelog, thank you :)
> However, I note there is no direct command to obtain the expected result according to you.
> NB: I have a suggestion for your command, same logic but probably less resource-consuming because there is only one pipe:
> apt-get changelog PACKAGENAME 2>/dev/null | awk 'BEGIN{FS=">"} /--/{sub(" ","",$2);print $2;exit}'
>
That's neat. You could turn into a shell function too:
roberto@miami:~$ pkg_date() {
> apt-get changelog "$1" 2>/dev/null | awk 'BEGIN{FS=">"} /--/{sub(" ","",$2);print $2;exit}'
> }
roberto@miami:~$ pkg_date chromium
Thu, 02 Apr 2020 22:23:57 +0000
Regards,
-Roberto
--
Roberto C. Sánchez
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Package integration date into repository l0f4r0@tuta.io - 2020-04-25 23:00 +0200
Re: Package integration date into repository Marco Möller <talby@debianlists.mobilxpress.net> - 2020-04-25 23:20 +0200
Re: Package integration date into repository Roberto C. Sánchez <roberto@debian.org> - 2020-04-26 01:40 +0200
Re: Package integration date into repository l0f4r0@tuta.io - 2020-04-26 01:40 +0200
Re: Package integration date into repository Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-26 09:20 +0200
Re: Package integration date into repository l0f4r0@tuta.io - 2020-04-27 01:20 +0200
Re: Package integration date into repository Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-27 08:40 +0200
Re: Package integration date into repository l0f4r0@tuta.io - 2020-04-28 14:00 +0200
Re: Package integration date into repository David Wright <deblis@lionunicorn.co.uk> - 2020-04-28 17:30 +0200
Re: Package integration date into repository Roberto C. Sánchez <roberto@debian.org> - 2020-04-28 18:30 +0200
Re: Package integration date into repository David Wright <deblis@lionunicorn.co.uk> - 2020-04-28 20:50 +0200
csiph-web