[Help wanted] BSS: OS bootstrap-system/dotfiles-manager framework want to add support for BSD reddit / BSD ---------------------------------------------------------------------- Sakashi_NNB · 2021-03-07 10:37 ## About [**SuperB Bootstrap**](https://github.com/NNBnh/superb-bootstrap) is a *SuperB* OS bootstrap-system/dotfiles-manager framework that can be installed with just one command on a new Unix system installation. ## Features * Super **portable**, work on almost any Unix and Unix-like operating system, it can even install dotfiles locally * Don't know anything about [git](https://git-scm.com/)? Dont't worry, SBB dotfiles can be host via [Nextcloud](https://nextcloud.com/), [Google drive](https://www.google.com/drive) or [Dropbox](https://www.dropbox.com/)... * Super **minimum** [dependencies](https://gist.github.com/NNBnh/bd2b4 edef2e18b65296d6db189009c79#dependencies), you don't need to install anything before the installation process * Super **organized** [file structure](https://gist.github.com/NNBnh/b d2b4edef2e18b65296d6db189009c79#setup) to config and share * Super **easy** to [setup](https://gist.github.com/NNBnh/bd2b4edef2e1 8b65296d6db189009c79#setup) and [install](https://gist.github.com/NNBn h/bd2b4edef2e18b65296d6db189009c79#usage): * Similar to [Stow method](http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to- manage-your-dotfiles.html), it's managing your dotfiles by storing them in a subdirectory (`dotfiles/home/`, `dotfiles/root/`) and symlinking them to their original location * You can even install your dotfiles with **just one command** from a new Unix system installation * Super **flexible** with one config, you can bootstrap **cross- platform**. Current supported package managers are: * [APT](https://wiki.debian.org/Apt) * [Portage](https://wiki.gentoo.org/wiki/Portage) * [Pacman](https://wiki.archlinux.org/index.php/Pacman) * [XBPS](https://docs.voidlinux.org/xbps/index.html) * [Zypper](https://en.opensuse.org/Portal:Zypper) * [AUR](https://wiki.archlinux.org/index.php/Arch_User_Repository) * [Homebrew](https://docs.brew.sh/) * [Flatpak](https://flatpak.org/) * [Snap](https://snapcraft.io/) ## Help wanted We want SBB to supported as many package managers as possible and we need your help by contribute to [this github issue](https://github.com/NNBnh/superb-bootstrap/issues/5). # [SBB repo](https://github.com/NNBnh/superb-bootstrap) | [Help wanted](https://github.com/NNBnh/superb-bootstrap/issues/5) ---------------------------------------------------------------------- kraileth · 2021-03-07 18:32 Some info for you to find your way on \*BSD: Historically FreeBSD introduced what is known as the *Ports Collection*, a framework to build software. With it came what is called the `pkg_*` tools (e.g. `pkg_add`, `pkg_info`, etc.). Both were soon picked up by NetBSD and developed independently so that both ports systems and package management utilities diverged. Both OpenBSD (which was forked from NetBSD) and DragonFly BSD (which began as a FreeBSD fork) inherited the systems from their respective mother OS. Since NetBSD is all about portability, its ports system evolved into what is known as *Pkgsrc* \- a ports system that works on a wide variety of operating systems (e.g. all the BSDs, Linux, Solaris and more!). It still uses `pkg_*` tools but they have been extended (there's e.g. `pkgin` which is exclusive to Pkgsrc). OpenBSD also uses `pkg_*` tools but uses a re-implementation in Perl. It has grown its own features like package flavors. FreeBSD has abandoned the old tools several years ago with FreeBSD 10.0 and replaced it with what was initially known as "pkg-ng" - and is today just called `pkg`. DragonFly BSD once used Pkgsrc as its official ports and packaging system but has since followed the innovations of FreeBSD and adopted pkg(8). And finally there's MidnightBSD which uses `mports` (which is both the ports framework and the package manager). Outside of BSD, modern Solaris / illumos also uses a package manager that goes by the name of `pkg`, by the way. So what you probably want is something like this (you're looking for unique marks, too, right? BSD and Solaris have different manpage sections and it's not uncommon to use these to distinguish between the tools): Name | Mark | Executable name | Command BSD-Pkg (FreeBSD & DragonFly) | pkg(8) | pkg | ${PERMISSION_COMMAND} ${BSD-Pkg_PM} install -y ${PKGNAME} Would that be helpful for you? ---------------------------------------------------------------------- Sakashi_NNB · 2021-03-07 18:50 Wow this is very helpful, thank you so much for taking time to explain to me. Do you mind if i add you name to SBB's credits section? ---------------------------------------------------------------------- kraileth · 2021-03-07 20:08 Feel free to do so if you want. I'm going to write you a message later with some more suggestions and a question (but need to get a couple of hours of sleep first). ---------------------------------------------------------------------- laffer1 · 2021-03-08 03:53 If you have questions or need help with MidnightBSD, I can help with that. mport is the package manager. ---------------------------------------------------------------------- Sakashi_NNB · 2021-03-08 13:03 Sorry for the late reply, can i ask you a few question: * What is the command to update and upgrade all packages on the system? * What is the best command to install a list of packages (e.g: `sudo command install --long-flag package1 package2 ...`) that don't need user interaction (don't need to enter `y` to confirm...) * What do you get when you type `uname -s` into the terminal? ---------------------------------------------------------------------- laffer1 · 2021-03-08 17:56 uname -s MidnightBSD In order to install packages: `doas mport install package1 package2` (doas is in base, sudo is available as a package) Updating a single package: `mport update package1` Updating all packages: `mport upgrade` Also note that `mport index` fetches the latest index for packages. It's recommended to run and also runs automatically every 2 weeks. We don't have a user interaction flag right now, but for most operations the user will not be prompted. It just executes. The only time a user prompt can happen is if there is an error or if a specific package has an install script that asks questions. This isn't common though. (bsdstats is one of the few i can think of) Deleting packages `mport delete package1` ---------------------------------------------------------------------- Sakashi_NNB · 2021-03-09 04:17 Awesome, thank you so much, i will add MidnightBSD suppoted to SBB 1.6.1. Do you mind if i add you name to the credits section? ---------------------------------------------------------------------- laffer1 · 2021-03-09 19:14 Sure. That would be nice ---------------------------------------------------------------------- KnowWhatsFuckingDumb · 2021-03-25 03:38 It can even install dot files locally ? Where the hell else would they be?