Skip to playerSkip to main content
  • 2 days ago
Transcript
00:00hello dudes please make sure you subscribe like share and comment and why not become a member
00:06we're keeping up with the series of bootstrapping this time we'll try to bootstrap package source
00:14or pkgsrc it's the package manager of net psd if you want me to make videos about the psds
00:23please comment that down below however i'm gonna do that sooner or later to bootstrap package source
00:33or pkgsrc we need to clone the repository in the official documentation they mentioned something
00:46call it cvs which was use it before git since net psd is older than git we can use it
00:54and in the
00:56github page of net psd package source we can use also git by running this command so i'm gonna copy
01:08this command and keep it like that as a command in case you wanted to run it just remove the
01:21pound sign in front of it and run it i will try to go with the method of cvs by
01:28installing cvs first like
01:40this all right i will clear out the screen and
01:49this one i'm not sure if you can add it in the beginning of the command since it's not mentioned
01:55here the rest of the command is the same however let's just do it full command becomes like this
02:03as root of course so we become root here
02:10and then we paste this let's see how it looks like
02:17yes
02:21once the command is finished running
02:25you are ready to run the next step
02:29there is also this page i guess it's the official
02:34website of the package manager itself which is pkgsrc.org
02:41it tells that there are two variants for this package manager one is current and one is the stable one
02:51for the command that we run for the command that we run let me clear out the screen and then
02:57show you what i run
02:59which is this one this one is mostly the current version
03:10if we want the stable version if we want the stable version we can run this command
03:30let's make it as a command since i do not want to run this command again and it's an end
03:37i already
03:41cloned repository of the current branch you have also the option to download the tarball
03:51from http either for the current branch or for the stable branch this gives also
04:00uh more details about the arguments of the script that is gonna be run soon so let's change directory into
04:13pkgsrc bootstrap like this we are in the home directory of root
04:22and then slash pkgsrc bootstrap we have two options the first one is to run the script without any argument
04:34second one is we decide the directory where we want the bootstrap to make its files
04:48we have also this one prefer pkgsrc which i don't know what it means and the make jobs is deciding
04:56how
04:56many threads you want to use when you compile the default prefix is slash usr
05:07slash pkgsrc bootstrap this one in case you decided to run the script without any argument and you can change
05:15it
05:15to whichever directory you want like for instance slash opt slash pkg
05:23i will simply choose how many
05:27threads i will use with this command
05:36i will use six threads since i have eight
05:41enter here
05:46i guess i miss it yes make jobs not only job then we press enter
05:57i guess the process is finished we can take a look at
06:03files like slash usr slash pkg slash etc
06:09slash mk.conf
06:12for the settings that are provided to bootstrap
06:16let's take a look at this file
06:22like this
06:25so we've got here the database directory the main directory the var base directory or the var directory
06:41and this is for the binary directory
06:49etc we can also take a look at
06:55the extensive documentation of the net psd packages collection
07:05there is there is also awk which is here an awk which is a text processing programming language
07:17let's take a look at the documentation let's run it as root here
07:52the type of information
07:54so let's take a look at this feature
08:09okay after the bootstrap and pop process we need to have be making our path there are
08:16two ways to do it the first one is the temporary one by running export path uppercase equals
08:27and then double double quotation mark dollar sign path colon and then usr pkg if i'm not mistaken
08:40like this and then we run echo path and we can see that we have it in our path
08:53let's see if we can get be make not yet
09:00it's under bin and we see here again
09:07we make yes you got it there if you want to get this permanently in case
09:14you intend to keep using pkgsrc you go to dot bash rc file
09:31and then
09:37let me take that command like this copy it
09:52and we go to bash dot bash rc
10:04we paste it at the end press y and enter to save that file let's install a package
10:14we switch to root like this password cd usr
10:32no cd root pkgsrc
10:40and
10:42i wanna go with something simple
10:47I guess I will remove edge top and use the one that will be installed through PKG SRC instead.
11:21cd root like this then should be sysutils htop yes and then be make install
11:49yes this is because it's not in bash rc of like the global bash rc it's not in the global
11:59bash rc
12:00such case we will resort to slash usr slash PKG slash bin slash bmake install bmake is the make
12:12version of net psd this should install it for us while this is installing the dependencies for
12:29htop let me show you the global way for adding a path to your linux operating system you go to
12:40slash etc slash environment
12:47password
13:03this is supposed to have the paths I don't know why mine doesn't
13:08maybe there is another configuration for this distribution and then in your case it must be
13:17something like usr pkg like this it should be with many other paths like slash usr slash bin slash usr
13:39slash local slash bin slash opt
13:47etc etc and whenever you want to append a new path to this file you add it after a colon
13:58like
13:59here you type a colon and then your path of your choice whichever it is you save and then exit
14:07and then log out
14:08then log back in you'll get your new path and then log back in you'll get your new path added
14:13added to your system in my case i'm not gonna add this to my path i fail to install
14:25i fail to install it stop as i'm gonna show you
14:33it get stuck here when trying to install psd tar so i simply change the directory into another package which
14:45was
14:46neo fetch and it is within the same directory and i installed it if we try to run neo fetch
15:02which neo fetch yes this is neo fetch from the directory if we see if we have it installed natively
15:17no my hand slipped
15:22neo fetch
15:28yes it's not installed natively so that neo fetch is from pkgsrc we have also the option to install many
15:38other packages
15:40let's try with triple n
15:50cd nnn do i have it installed here no let's try to install it
16:00like this
16:03this package also failed to install
16:07anyway i'm signing out and see you in another one
Comments

Recommended