LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-27-2019, 08:46 AM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware, Linux From Scratch, Bedrock
Posts: 337
Blog Entries: 46

Rep: Reputation: 18
NetBSD: pkgin or pkgadd?


Near as I can tell in my researches: In NetBSD, the two package managers used are pkgsrc and pkgin. The first is for source packaghes and the second binary.

A (the) pkgsrc guide details how to fetch pkgrc via ftp and how to
detar it to install it. OK, done.

The pkgin guide has one use pkgsrc to get pkgin.

pkgadd was installed as part of pkgsrc. According to its man page, pkgadd will install a binary and all dependencies, including fetching from the repo.

Therein lies the core of my confusion: if pkgin and pkgadd do the same thing, why do both exist? Which should one use?

Thank you.
 
Old 02-28-2019, 06:20 AM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 2,826

Rep: Reputation: Disabled
If pkgsrc installs pkgadd, why did you add pkgin(?). Sounds from what you say they do the same job, but pkgadd is part of pkgsrc, so why did you install pkgsrc if you only want binary packages, which, I'm assuming, pkgin will handle on its own, without needing pkgsrc being installed - or have I misread what you are saying.

(I should check the man pages, to see what the differences are.)

Last edited by fatmac; 02-28-2019 at 06:22 AM.
 
Old 02-28-2019, 07:33 AM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Slackware, Linux From Scratch, Bedrock
Posts: 337

Original Poster
Blog Entries: 46

Rep: Reputation: 18
Quote:
Originally Posted by fatmac View Post
If pkgsrc installs pkgadd, why did you add pkgin(?).
Becuase I didn't know pkgadd existed until after I installed pkgin. BSD is new to me, so I only know what is in web pages and man pages.

Quote:
Sounds from what you say they do the same job, but pkgadd is part of pkgsrc,
Hence the root of my question.

Quote:
so why did you install pkgsrc if you only want binary packages, which, I'm assuming, pkgin will handle on its own, without needing pkgsrc being installed - or have I misread what you are saying.
Because I thought I needed pkgsrc to compile pkgin?
 
Old 02-28-2019, 08:03 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,224
Blog Entries: 5

Rep: Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315Reputation: 1315
pkgin on NetBSD is to pkg_add what pkg in FreeBSD is to pkg_add.

Quote:
Many so-called GNU/Linux distributions provide a convenient way of searching, installing and upgrading software by using binary archives found on "repositories". NetBSD, and more widely, all operating systems relying on pkgsrc have tools like pkg_add and pkg_delete, but those are unable to correctly handle binary upgrades, and sometimes even installation itself.

This is the purpose of pkgin, to provide the user a convenient way to handle binary packages, using the same working mechanisms than tools like apt-get.
 
Old 02-28-2019, 09:31 AM   #5
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 2,826

Rep: Reputation: Disabled
Quote:
Originally Posted by jr_bob_dobbs View Post
......Because I thought I needed pkgsrc to compile pkgin?
Fair enough!

Enjoy your new system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pkgadd problem Yeung Solaris / OpenSolaris 2 12-01-2008 01:09 AM
pkgadd problem, please help. mokku Solaris / OpenSolaris 1 04-08-2008 11:32 AM
pkgrm/pkgadd problem, I messed up, need advice haertig Solaris / OpenSolaris 1 03-25-2008 08:36 AM
pkg from sunfreeware not pkgadd-ing?? bigearsbilly Solaris / OpenSolaris 5 11-23-2006 06:26 AM
Can someone help please - what is pkgadd? deanbrown3d Solaris / OpenSolaris 3 06-18-2004 08:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration