LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   NetBSD, pkgsrc: Getting only some of the sources. (https://www.linuxquestions.org/questions/%2Absd-17/netbsd-pkgsrc-getting-only-some-of-the-sources-480045/)

jaakkop 09-03-2006 12:26 PM

NetBSD, pkgsrc: Getting only some of the sources.
 
Hi,

Can I get only some of the sources via CVS with pkgsrc. I have a limited amount of HDD space and certainly don't need all of the sources.

frob23 09-03-2006 02:42 PM

You can... but you need to be sure you get everything you need.

Code:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/mk
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/bootstrap
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/pkgtools/digest
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/audio/xmms
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/misc/screen

You NEED the first line and probably want the second. The third is a very common dependancy -- you want that also. Below that, you want to grab all the programs you want and their depends.

You can simplify this in the future by creating complete .cvsignore files in each directory. I would recommend the cvsignore process from the start but there is too much of a chance you'll be too selective and miss a dependancy and then have to try and edit out the regexp which blocked it. This method above will make you get every depends by hand but also shows you how to do it.

jaakkop 09-04-2006 08:58 AM

Quote:

Originally Posted by frob23
You can... but you need to be sure you get everything you need.

[code]cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/mk
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/bootstrap
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/pkgtools/digest
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/audio/xmms
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc/misc/screen
[code]
You NEED the first line and probably want the second. The third is a very common dependancy -- you want that also. Below that, you want to grab all the programs you want and their depends.

You can simplify this in the future by creating complete .cvsignore files in each directory. I would recommend the cvsignore process from the start but there is too much of a chance you'll be too selective and miss a dependancy and then have to try and edit out the regexp which blocked it. This method above will make you get every depends by hand but also shows you how to do it.

Ty, that really helped :)


All times are GMT -5. The time now is 08:39 PM.