[Slackbuilds-users] Wishful thinking
Eric Pratt
eric.b.pratt at gmail.com
Sat Jan 13 20:53:33 UTC 2018
I also use sbopkg. But if you're looking for something less automated to
find the list of packages you've installed, you could run this:
ls /var/log/packages/*SBo | sort -f | cut -d/ -f5
That will show all packages installed from slackbuilds.org on your system
without showing any other packages. You can also add to the pipeline to
further edit the listing if you only wish to see only the name of each
package or only the name and version of each package, for instance.
If you want to get a list of the packages and their dates of installation,
you could do this:
for i in $(ls /var/log/packages/*SBo | sort -f | cut -d/ -f5); do echo -n
"$i: "; stat -c %y $i | cut -d\ -f1; done
If you want to get a list of packages that have changed since you last
installed them, you'll need to use git to sync up the repo on your system.
Then you'll have to iterate through the list of package names on your
system, checking your local git repo for the latest version of the package
and comparing it to your own. You could almost certainly do that as a one
liner too, but a small script would probably be better.
Unless you're really interested in rolling your own script(s) for this, I
really do recommend using a more fully automated tool that's already been
written. I can't really recommend one over the others since I've only used
sbopkg. I really should try out the other tools to see what they can do.
But as others have said, there are multiple options for what you're trying
to do and at least one of them is probably what you're looking for.
On Sat, Jan 13, 2018 at 11:29 AM, B Watson <yalhcru at gmail.com> wrote:
> On 1/13/18, Alexander Grotewohl <alex at dcclost.com> wrote:
> > So I was thinking it'd be kind of neat if it were possible to log in on
> > the slackbuilds site and check off software I've installed, and perhaps
> > get a list of items that have changed since I last checked. Yeah,
> > wishful thinking indeed :)
>
> Doing that on a website, manually, by checking boxes... would be tedious
> indeed. The computer already knows the information, better to automate it.
>
> sbopkg isn't my favorite thing in the world, but it does a good job of
> finding locally-installed packages that are outdated (have new versions
> on SBo).
>
> I've never used sbotools, but surely it has the same functionality. I'm
> tempted to say "if it doesn't, I'll eat my hat", but I'm running low on
> hats lately...
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180113/2bc61d3b/attachment-0001.html>
More information about the SlackBuilds-users
mailing list