How to find new packages?
Is there an easy way to see packages that are new (not updated) to the official (not AUR) repos?
About this post
- Posted
- Archived
- Score
- 3 · 71% up
- Kind
- Text
- ID
- ndtzvm
Is there an easy way to see packages that are new (not updated) to the official (not AUR) repos?
11 comments
you can run something like this daily.. firt time it will run, it will give an error about file not found but will be Ok on the second run.
#!/bin/bashmv pkg-list.txt pkg-old.txt # keep previous package listpacman -Ssq > pkg-list.txt # generate the current list of available packagesdiff pkg-list.txt pkg-old.txt # diff the 2 listsGuess, that's what I was looking for. Thank You.
No, I don't think anything like that exists. If you know a little programming, write it yourself. You need to keep the list of known packages, have a service polling for updated packages once per hour or so (Arch has RSS for official packages update), exclude known packages from the result set and you have the list of new packages. The hardest part is XML parsing, for reliable parsing you should find a library, and I believe finding the library will be the most time-consuming task.
Edit: I was making the solution more complex than it should, u/slayerizer solution is superior. You already have the package database, just query for the list of current ones and exclude the know packages. You can use
pacman -Slqto get the name of available packages in your database, then compare it with the old one to find out what packages are added added, this way no parsing or background service needed. Below is a short shell script to demonstrate how it works,updateto query new package list,viewto see what packages are added,saveto mark things as read so the nextviewdoes not print the packages. Note thatviewalso reports the packages removed, it may or may not be what you want.For what it's worth, a library for parsing RSS feeds in Python is
https://pypi.org/project/feedparser/
That's what I meant by "easy": You point out the way, I might be able to do so, but have prior tasks (plus a job to do)
After reading the other comment, I changed my mind. RSS is not so reliable, especially when there are more than 50 packages get updated at once. See my edit instead.
Deleted before we saved it.
Thanx for Your work - neat script.
Deleted before we saved it.
Installpacman-contrib. It has a bunch of useful stuff includingcheckupdateswhich displays a list of packages that can be updated.Looks like I misunderstood what OP wanted...
I don't think that is what OP is looking for. I think OP wants a list of packages that have recently been moved from AUR to extra/community.