ELI5: what is the Ports-tree? - BSD
Users browsing this thread: 3 Guest(s)
|
|||
Hey there,
I was thinking about that a very long Time, because i think about changing from linux to BSD or at least switching from arch to a distro that provides some kind of a ports-tree like crux linux does, or gentoo if you want. So, whenever i read about this topic, i cannot find out *in detail* what this is. Is it some kind of Directory, that provides sources and stuff or is it completely different from my idea? I apologize if this maybe Sounds a Little noobish, but i thought, this'd by the right Place to ask. |
|||
|
|||
If you are on Arch you can try the ABS to get an idea of what ports are like.
https://wiki.archlinux.org/index.php/Arch_Build_System |
|||
|
|||
A port-tree is a cook book. But instead of making cakes, you create packages.
Instead of pages, you have directories. Instead of recipes, you have scripts or makefiles (depending on your system). The most simple recipe to build a package would be: Code: #!/bin/sh Where would you put this recipe ? In your cookbook : Code: /usr/cookbook This, tiny boy, is a cookbook port-tree |
|||
|
|||
It's just a directory full of Makefiles that fetch the source, build a package and install it. Here is the OpenBSD documentation on what the ports tree is. Basically, if you want to install chromium, for example:
Code: $ cd /usr/ports/www/chromium my website: kaashif.co.uk
|
|||