You should submit this as a PRbut does not say that the user has tocdto the/usr.
Sorry to be blunt here, but: update what? The ports collection? I do that all the time, because it helps me to remind myself to keep my base OS up to date.How many usegitto update? My surprise was when my installation by internet did not include the ports section.
Care to share the exact manualpage?I then read themanand it shows a line to update the port usinggitbut does not say that the user has tocdto the/usr.
# make install clean, where clean is optional and of course: this needs to be done in the right directory.I recommend making /usr/ports/distfiles and /usr/ports/packages to be dedicated datasets (on ZFS) or partitions (on UFS).Are you using ZFS? If so I think/usr/ports is a dataset, not a simple directory.
git/gitup are used to create a ports source tree and build from the source.
Is that your intention?"
Agree 100% on this.I recommend making /usr/ports/distfiles and /usr/ports/packages to be dedicated datasets (on ZFS) or partitions (on UFS).
Doing so allows you to unmount both when your ports tree is somehow broken, delete the existing whole /usr/ports and clone from upstream again, then, (re)mount /usr/ports/distfilesand /usr/ports/packages.
And for anyone preferring bare-metal upgrading tools like ports-mgmt/portupgrade{-devel} that uses /usr/ports/packages/All for the place to store packages (newly built one if optionAgree 100% on this.
I think by by default /usr/ports may be it's own dataset, so distfiles would wind up there by default, but have /usr/ports/distfiles it's own dataset helps save time if you blow away the tree.
-p is set and temporary/kept backups), /usr/ports/packages would be better being dedicated dataset (ZFS) or partition (UFS) not to lose already-built packages when ports tree is blown away. git so the link to the program or application is good except if is to be complicated, then I will see if I read it. I used the memory stick install, not the DVD one. Maybe that is different in some way, but it does not install the ports. I should have explained this, but I installed git just to install the port. thanks, and to report a PR problem to the manpage of ports, maybe.Very good advice. In addition it can also help you to save up some precious diskspace. Because the ports collection mostly consists of text files it's very useful to turn compression on for the ports dataset. But because distfiles and packages mostly contain binary (and already compressed) data you're better of to leave compression off.I recommend making /usr/ports/distfiles and /usr/ports/packages to be dedicated datasets (on ZFS) or partitions (on UFS).
Doing so allows you to unmount both when your ports tree is somehow broken, delete the existing whole /usr/ports and clone from upstream again, then, (re)mount /usr/ports/distfilesand /usr/ports/packages.
root@zefiris:~postgres/data18 # zfs get compression -r zroot/ports
NAME PROPERTY VALUE SOURCE
zroot/ports compression on local
zroot/ports/distfiles compression off local
zroot/ports/packages compression off local
Not using ZFS. I loooked inAre you using ZFS? If so I think/usr/ports is a dataset, not a simple directory.
git/gitup are used to create a ports source tree and build from the source.
Is that your intention?"
ports manpage because I did not use packages to install FreeBSD but cliked the internet option.I just did that. I don't expect many views or comments.You should submit this as a PR
This. And both can have compress=off set as they contain compressed files.I recommend making /usr/ports/distfiles and /usr/ports/packages to be dedicated datasets (on ZFS) or partitions (on UFS).
Doing so allows you to unmount both when your ports tree is somehowbroken, delete the existing whole /usr/ports and clone from upstream again, then, (re)mount /usr/ports/distfilesand /usr/ports/packages.
rm -vfR /usr/src
mkdir /usr/src
cd /usr/src
git clone https://github.com/freebsd/freebsd-src.git
git branch
For /usr/ports/packages, would be.This. And both can have compress=off set as they contain compressed files.
For /usr/ports/packages, would be.
On the other hand, for /usr/ports/distfiles, unclear.
In ancient days, source codes were almost always provided as tarballs, ZIP, LZH or something compressed and ports use those as distfiles.
In these cases, compression on local filesystem side were useless (or even harm).
But recently, many upstream provide source codes via VCS (like git, subversion, Hg, CVS, ...) and some could just provide releases as "tags for specific commit" for any environments other than they officially provide pre-built binary packages.
In these cases, and the VCS server doesn't support "compressed release assets" but "clone and pull" only, distfiles can be plain repositories under specific subdirectories of each ports, and compression on local filesystem side can help.
Just a possibility.Can you provide an example of such port? All git forges support tarballs anyway and the .git directory contains compressed blobs.