xbps icon indicating copy to clipboard operation
xbps copied to clipboard

[Feature request]: Sort manually installed packages by date.

Open LinArcX opened this issue 6 years ago • 5 comments

Hi. with -m option in xbps-query, it just shows manually installed packages alphabetically. It can be sometimes useful to sort manually installed packages by date.

LinArcX avatar Aug 11 '19 18:08 LinArcX

@huglovefan Thanks. also some guy send this to me:

tmp=$(mktemp); xbps-query -m > ${tmp}; xilog | grep -f ${tmp}; rm ${tmp}

And it works. But i think it's better that xbps internally support it via a flag.

LinArcX avatar Aug 12 '19 07:08 LinArcX

Nah, if it works with a script around it that's good enough. There could be no end to the "Just this mode" flags otherwise.

Vaelatern avatar Aug 12 '19 12:08 Vaelatern

I think a sort flag for all the list modes, that can sort by any string or number property would be interesting and would be "generic" and doesn't really require any special handling for every possible key you would like to sort by.

xbps-query --orderby installed_size -l
xbps-query --orderby install-date -l

Duncaen avatar Aug 12 '19 13:08 Duncaen

I am also interested in this. My main use case would be when I install a bunch of packages to build something, and then I decide I don't need that thing anymore, but the packages are still there. Then sorting by date would make it easier to find those manually installed packages

glazenbol avatar Oct 11 '21 12:10 glazenbol

You can already list manually installed packages. Install date currently match the installation date or the last time of an update so its not that useful for that.

Duncaen avatar Oct 11 '21 12:10 Duncaen