Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using pkgbase #166

Open
probonopd opened this issue Feb 27, 2021 · 12 comments
Open

Consider using pkgbase #166

probonopd opened this issue Feb 27, 2021 · 12 comments

Comments

@probonopd
Copy link
Member

probonopd commented Feb 27, 2021

Consider using pkgbase once helloSystem is built on FreeBSD 13.

https://alpha.pkgbase.live/ is the unofficial repository for the FreeBSD PkgBase project.

Pros

  • It may be possible to build smaller ISOs with a slimmer "BSD subsystem" (this would be very welcome given our constraint that the ISO must be <2 GB)

Cons

  • https://alpha.pkgbase.live/ is not official FreeBSD and hence may not be supported by the FreeBSD core developers
  • Are there any guarantees that it will still be there tomorrow?

I am probably missing many points since all of this is still very new to me, so please feel free to comment below. I will update the summary above accordingly.

@grahamperrin
Copy link
Contributor

For clarity:

… not official FreeBSD …

– that describes the alpha.pkgbase.live repository (should not be taken as a description of PkgBase).

We have, for example, the FreeBSD-provided mailing list for PkgBase. Linked from the list:

– with https://cgit.freebsd.org/src/commit/?id=0ac8aa55da1cb5e53a9102fd007dd01ee6d17894 committed to main.

Plus https://reviews.freebsd.org/tag/pkgbase/@igalic is in very good company there … and so on. I should view all such things as official.

Thoughts

To the best of my knowledge:

  • there is no significant proposed alternative to PkgBase
  • PkgBase is the way to go.

(Why does there appear to be not much impetus behind PkgBase? I guess, no rush for the FreeBSD community to abandon freebsd-update(8) because "If it ain't broke, don't fix it". Whilst being thrown into the command line (sometimes including vi) might surprise, or shock, people who are accustomed to a GUI for operating system updates and upgrades: the command line is an acceptable norm for a significant proportion of the FreeBSD community.)

Documentation

https://wiki.freebsd.org/PkgBase is significantly outdated. As many wiki pages do become :-) From https://wiki.freebsd.org/action/info/PkgBase?action=info

For starters (trivial): remove the 2017 "ETA?". This page will benefit for from a non-trivial re-write to reflect ongoing work in and around the FreeBSD community.

@igalic
Copy link

igalic commented Feb 28, 2021

my plan is, indeed, to overhaul that wiki.
or at least get rid of the wrong and confusing or outdated information

I've been using https://alpha.pkgbase.live/howto/ for prototyping better documentation.

perhaps what's in the wiki can be reduced to the TODOs and concrete calls to action, and my documentation could even be put into the handbook?

@grahamperrin
Copy link
Contributor

Cool!

Some readers will (naturally) rush into things without attempting to get the big picture, so somewhere near the head of https://alpha.pkgbase.live/index.html you might add:

  • just one unmistakable ⚠ yellow alert paragraph

– emphasising the importance of not shooting oneself in the foot. If this means explicitly directing the reader to use bectl(8) then say something like "Good use of ZFS boot environments is a must" and link to the relevant page (or an anchor therein).

Don't expect all readers to actually click the Howtos link near the head of the main page :-)

Whilst I have not yet gone through any page in detail, my first impressions were that things are written in a way that can make the user unafraid to revisit 🏆

@grahamperrin
Copy link
Contributor

#166 (comment) for clarity:

  • PkgBase is the way to go.

– I mean, it is the way to go for FreeBSD.

@grahamperrin
Copy link
Contributor

@grahamperrin
Copy link
Contributor

https://mastodon.social/@_bapt_/111532837806049398

@probonopd
Copy link
Member Author

Looks like this is a thing now. Is there a list of the packages conatined in pkgbase? Or is this literally just one package called "base"?

@igalic
Copy link

igalic commented Dec 10, 2023

the idea is to install pretty much everything (except for the things you don't need)

pkg search -r FreeBSD-base -g FreeBSD-\* | \
  grep -Ev '-dbg|-test' | \
  xargs pkg install -y

@probonopd
Copy link
Member Author

Thanks @igalic. Interesting!
Is there a list of the available packages somewhere?

@0hip
Copy link

0hip commented Dec 11, 2023

Thanks @igalic. Interesting! Is there a list of the available packages somewhere?

From:
https://wiki.freebsd.org/PkgBase

In addition, to aid exploration and adoption, an unofficial repository https://pkg.freebsd.evilham.com/images is provided by Evilham (Andrés).

could this be what you are looking for?
https://pkg.freebsd.evilham.com/images/FreeBSD%3A14%3Aamd64/latest/

@igalic
Copy link

igalic commented Dec 12, 2023

I think that probably needs to be removed.
everything you need should be on top. that is, https://pkg.freebsd.org/${ABI}/base_release_0

@probonopd
Copy link
Member Author

https://pkg.freebsd.org/FreeBSD:14:amd64/base_release_0/ lists the packages indeed. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants