-2

I'm running NetBSD in a virtual machine. Documentation and explanations on how to use pkgsrc are scarce. Let's say I want to install vim for NetBSD. What would I type? Do I need a URL? Do I need a specific version? Do I need to set up a directory for building the source of vim?

1
  • 6
    Sorry, dude, but as a former long-term user of NetBSD (this being >10 years ago), I think claiming pkgsrc was »scarcely« documented is just utterly wrong. netbsd.org/docs/pkgsrc May 9, 2016 at 21:33

2 Answers 2

4

As Andreas said, pkgsrc is very well documented. Follow the pkgsrc guide and you should be in business in no time

2

Suppose you've unpacked the pkgsrc tree into /home/melab/pkgsrc. Then you can build gvim as follows:

cd /home/melab/pkgsrc/editors/gvim
make package install clean

Note that make might be /usr/pkg/bin/bmake if you bootstrapped pkgsrc yourself with default options, though NetBSD /usr/bin/make is really bmake. This very simple explanation glosses over all the fine tuning that's possible by editing the pkgsrc settings file (/etc/mk.conf or perhaps /usr/pkg/etc/mk.conf) - for that you would need to check the extensive documentation.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .