NetBSD 3.0.1 mini HOWTO part2
Pkgsrc
Well the only reason I like about freebsd is the ports. (easier to install things eh?) but so do netbsd or other bsd. For netbsd it uses pkgsrc. First off all it didn’t come with the cd (I dloaded the iso from the netbsd official site). Here are few method that u can do to retrieve pkgsrc.
a). CVS
make sure that u have cvs installed. (by default it has unless u selected custom installation during the installation process).
So to use cvs;
(you have to type aaa..)
For C shell :
setenv CVSROOT anoncvs@anoncvs.NetBSD.org:/cvsroot
setenv CVS_RSH ssh
and for the bourne shell (bash, sh)
CVSROOT=”anoncvs@anoncvs.netbsd.org:/cvsroot”
CVS_RSH=”ssh”
export CVSROOT CVS_RSH
Then change to the directory where u want to have this pkgsrc. Usually in /usr. (you can put pkgsrc at other directory. It’s ur machine, not mine hehehehe)
Run cvs
For current branch run , cvs –q checkout –P pkgsrc
And for the stable branch, cvs –q checkout –rpkgsrc-2006Qx –P pkgsrc (where Qx represents which quarter that pksrc released. U can check at netbsd website tho)
To update:
Just run cvs –q update –dP
To change ur pkgsrc from stable to current when updating : cvs –q update –A –dP
To change ur pkgsrc from current to stable when updating : cvs –q update –rpkgsrc-2006Qx -dP
b). Tar file
(as I am too lazy to write. I’ll paste from netbsd handbook)
The primary download location for all pkgsrc files is ftp://ftp.NetBSD.org/pub/pkgsrc/.
The tar file for the current branch is in the directory current and is called pkgsrc.tar.gz. It is autogenerated daily.
The tar file for the stable branch 2006Q1 is in the directory 2006Q1 and is also called pkgsrc.tar.gz. After downloading the tar file, change to the directory where you want to have pkgsrc. This is usually /usr. Then, run tar xfz pkgsrc.tar.gz to extract the files.
Updating using tar files
When updating from a tar file, you first need to completely remove the old pkgsrc directory. Otherwise those files that have been removed from pkgsrc in the mean time will not be removed on your local disk, resulting in inconsistencies. When removing the old files, any changes that you have done to the pkgsrc files will be lost after updating. Therefore updating via CVS is strongly recommended.
Well the only reason I like about freebsd is the ports. (easier to install things eh?) but so do netbsd or other bsd. For netbsd it uses pkgsrc. First off all it didn’t come with the cd (I dloaded the iso from the netbsd official site). Here are few method that u can do to retrieve pkgsrc.
a). CVS
make sure that u have cvs installed. (by default it has unless u selected custom installation during the installation process).
So to use cvs;
(you have to type aaa..)
For C shell :
setenv CVSROOT anoncvs@anoncvs.NetBSD.org:/cvsroot
setenv CVS_RSH ssh
and for the bourne shell (bash, sh)
CVSROOT=”anoncvs@anoncvs.netbsd.org:/cvsroot”
CVS_RSH=”ssh”
export CVSROOT CVS_RSH
Then change to the directory where u want to have this pkgsrc. Usually in /usr. (you can put pkgsrc at other directory. It’s ur machine, not mine hehehehe)
Run cvs
For current branch run , cvs –q checkout –P pkgsrc
And for the stable branch, cvs –q checkout –rpkgsrc-2006Qx –P pkgsrc (where Qx represents which quarter that pksrc released. U can check at netbsd website tho)
To update:
Just run cvs –q update –dP
To change ur pkgsrc from stable to current when updating : cvs –q update –A –dP
To change ur pkgsrc from current to stable when updating : cvs –q update –rpkgsrc-2006Qx -dP
b). Tar file
(as I am too lazy to write. I’ll paste from netbsd handbook)
The primary download location for all pkgsrc files is ftp://ftp.NetBSD.org/pub/pkgsrc/.
The tar file for the current branch is in the directory current and is called pkgsrc.tar.gz. It is autogenerated daily.
The tar file for the stable branch 2006Q1 is in the directory 2006Q1 and is also called pkgsrc.tar.gz. After downloading the tar file, change to the directory where you want to have pkgsrc. This is usually /usr. Then, run tar xfz pkgsrc.tar.gz to extract the files.
Updating using tar files
When updating from a tar file, you first need to completely remove the old pkgsrc directory. Otherwise those files that have been removed from pkgsrc in the mean time will not be removed on your local disk, resulting in inconsistencies. When removing the old files, any changes that you have done to the pkgsrc files will be lost after updating. Therefore updating via CVS is strongly recommended.
|