Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Justine Smithies
Justine Smithies
@justine@snac.smithies.me.uk  ·  activity timestamp 2 weeks ago

Ah-ha! Just discovered a better way of listing only the packages that I installed on #FreeBSD . Most folk tell you to use pkg info -q -a which just gives you a list of everything installed. I wanted just what I installed after the initial FreeBSD install. So to do that type the following.

pkg query -e '%a=0' %n

Everyday is indeed a school day. 😎

#RunBSD

  • Copy link
  • Flag this post
  • Block
Dan Langille
Dan Langille
@dvl@bsd.network replied  ·  activity timestamp 2 weeks ago

@justine

That seems to be "List non-automatic packages"

re: https://man.freebsd.org/cgi/man.cgi?query=pkg-query

Why is that more useful to you than top level packages?

pkg query -e '% #r = 0' %o

pkg-query

  • Copy link
  • Flag this comment
  • Block
dch :flantifa: :flan_hacker:
dch :flantifa: :flan_hacker:
@dch@bsd.network replied  ·  activity timestamp 2 weeks ago

@dvl @justine I use ‘pkg prime-origins’ for this. Justine does it produce more accurate results for you?

In my head it means “show me the things I chose to install and not the automatic dependencies”

  • Copy link
  • Flag this comment
  • Block
Dan Langille
Dan Langille
@dvl@bsd.network replied  ·  activity timestamp 2 weeks ago

@dch @justine

I recall seeing `prime-origins` before, but I cannot find docs on it. I see it is an alias:

https://forums.freebsd.org/threads/pkg-prime-list.80709/

The FreeBSD Forums

pkg prime-list

I just read that:- pkg prime-list is an alias command declared in /usr/local/etc/pkg.conf. There are many others that can be used to query the package database of the system. For instance, command pkg prime-origins can be used to get the origin port directory of the list mentioned above: I...
  • Copy link
  • Flag this comment
  • Block
dch :flantifa: :flan_hacker:
dch :flantifa: :flan_hacker:
@dch@bsd.network replied  ·  activity timestamp 2 weeks ago

@dvl yeah I peeked through /usr/etc/local/pkg.conf to find it. I would like that but with the pkg flavour added I’m sure it’s possible @justine

  • Copy link
  • Flag this comment
  • Block
Michael Dexter
Michael Dexter
@dexter@bsd.network replied  ·  activity timestamp 2 weeks ago

@dch @dvl @justine That command could be more memorable. 😐

I almost got a ‘chflags -R noschg’ tattoo but mercifully learned the shorthand.

  • Copy link
  • Flag this comment
  • Block
dch :flantifa: :flan_hacker:
dch :flantifa: :flan_hacker:
@dch@bsd.network replied  ·  activity timestamp 2 weeks ago

@dexter I just type chfl and mash up arrow until my shell history spits it out @dvl @justine

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct