Solved questions about pkg and port

question 1:
If I installed wget from the pkg
pkg install wget
and then decided to installing again from port
cd /usr/ports/ftp/wget
make install clean

then what would happened???
Will the port installation overwrite the pkg installation? Or duplicated wget installation?

question 2:
If I installed a package from ports and after the installation complete, then can I uninstall it from the pkg tool ??

question 3:
How to list only and only pkg installed packages ??
How to list only and only port installed packages ??

question 4:
to upgrade port tree
should I always type
port fetch
port extract
port fetch update

or it's just enough to type
port fetch update ?

I'm new to FreeBSD using FreeBSD 12.0
Thanks you :)
 
If I installed wget from the pkg
pkg install wget
and then decided to installing again from port
cd /usr/ports/ftp/wget
make install clean
then what would happened???
It will tell you it's already installed and refuses to continue.
Will the port installation overwrite the pkg installation? Or duplicated wget installation?
No and no.

If I installed a package from ports and after the installation complete, then can I uninstall it from the pkg tool ??
Yes.
to upgrade port tree
should I always type
port fetch
port extract
port fetch update
or it's just enough to type
port fetch update ?
To update a portsnap fetch update is enough.
 
Ports build packages and it's these packages that eventually get installed. So once it's installed everything is a package.
 
Back
Top