LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-30-2015, 10:00 AM   #1
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Rep: Reputation: 23
Problem with FreeBSD package management 'pkg'


I've been using FreeBSD for 8 months now and one thing bothers me the most is the 'pkg' package management.

it seems 'pkg' doesn't check all dependencies when install new application, unlike debian's 'apt'.

as a result, working applications usually become broken. as a example, most recently I installed 'awesome WM' on my thinkpad laptop, during the installation, it upgraded pkg sources, firefox, and bunch of other softwares. however, afterwards firefox, xfe, etc don't work anymore. I've searched web and it seems this is a common problem - in fact a deficiency of pkg. but surprisingly FreeBSD community (i.e. FreeBSD forum) seems ignore this serious problem.
 
Old 01-09-2016, 03:18 PM   #2
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
The package manager for Slackware Linux also doesn't have dependency tracking. I think there are good reasons some package managers don't have that functions, though I'm not familiar with the philosophy behind it. I became used to, and learned Slackware, and had no problems once I understood some fundamentals. Some would suggest that if you are really that unhappy with a feature on your O/S, then it's time to switch. On the other hand, you may be able to find out why the package manager works like that, and adapt. Sometimes it's more a matter of personal preference than anything else.
 
1 members found this post helpful.
Old 01-21-2016, 01:57 PM   #3
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
FreeBSD has exactly two methods of install a package: ports and pkg. and pkg does check dependency, albeit incomplete from my past experience. and I'd rather use pkg than compiling from ports to install a pkg. but given the often broken state of what 'pkg' usually does to my system, I'm really frustrated. of the pkg management tools I used in the past - 'apt' 'XBPS', pkg is the worst at doing dependency check. a quick look at github/FreeBSD pkg, one easily sees there are many unsolved issues with pkg.

one of the main reasons I use FreeBSD is to escape systemd.
 
Old 03-11-2016, 11:37 AM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
You could try switching over to using ports.
 
Old 03-12-2016, 03:58 PM   #5
MarcoB
LQ Newbie
 
Registered: Apr 2015
Location: The Hague, Netherlands
Distribution: FreeBSD, NetBSD, Slackware, OpenVMS
Posts: 19

Rep: Reputation: Disabled
I you run something like firefox in an xterm, what error message do you get?
 
Old 03-26-2016, 10:36 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Pkg only includes recommended and required dependencies for packages off the server.

If you want full coverage of all possible dependencies, you need to use the ports to create your own packages.
 
  


Reply



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
GUI package management for FreeBSD Randicus Draco Albus *BSD 35 03-13-2019 09:28 AM
Problem using pkg with pf enabled on FreeBSD 7.0 AleLinuxBSD *BSD 8 06-24-2008 02:55 AM
Package Management problem! robebe Linux - Software 15 01-14-2005 11:21 AM
Pkg Management without Swaret justaguynsrq Slackware 10 01-08-2005 09:33 PM
package management in freebsd h/w *BSD 1 02-06-2004 06:35 PM

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

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

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
Open Source Consulting | Domain Registration