DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th June 2012
sw2wolf sw2wolf is offline
λ programmer
 
Join Date: Mar 2012
Location: China
Posts: 133
Default pkg_add is NOT clever

Code:
#pkg_add -r pekwm
Error: Unable to get http://mirrors.163.com/FreeBSD/releases/i386/9.0-RELEASE/packages/All/pekwm.tbz: Not Found
We must use `pkg_add -r pekwm-0.1.13,1` to install it.


Can pkg_add be more intelligent, i.e. using RegExp to match the package ?


Sincerely!
Reply With Quote
  #2   (View Single Post)  
Old 26th June 2012
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

No it's not intelligent; it's a program. And it does exactly what you tell it to do.

Either you explicitly set the PACKAGESITE variable to point to that directory or you implicitly let it default to it.
The fact is the /All directory contains all the packages in the name-ver.s.i.o_n.tbz format while the /Latest directory contains symlinks to the /All directory in the name.tbz format.

So you need to set PACKAGESITE to point to the second one instead.

References:
pkg_add(1)
http://www.freebsd.org/doc/en_US.ISO...ges-using.html
__________________
May the source be with you!
Reply With Quote
  #3   (View Single Post)  
Old 26th June 2012
sw2wolf sw2wolf is offline
λ programmer
 
Join Date: Mar 2012
Location: China
Posts: 133
Default

I see now. thank you !
Reply With Quote
  #4   (View Single Post)  
Old 26th July 2012
da1 da1 is offline
Fdisk Soldier
 
Join Date: Feb 2009
Location: Berlin, DE
Posts: 49
Default

You might wanna have a look into pkgng. It will be the default for version 10 (I think) and u can use it for version 9 too.
Reply With Quote
  #5   (View Single Post)  
Old 22nd August 2012
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

You're right, pkg_add is as dumb as your goldfish. Probably dumber.

This is a feature, not a bug.

If you've ever tried to hack or debug something like yum, you see the advantage. Hacking Yum is almost impossible, and when something goes wrong it usually takes a lot of time to pin down the problem & solve it. It's just too complicated.
Hacking pkg_add is easy, it does one thing, and does it well. Why ask for more?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #6   (View Single Post)  
Old 23rd August 2012
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Quote:
Originally Posted by da1 View Post
You might wanna have a look into pkgng. It will be the default for version 10 (I think) and u can use it for version 9 too.
IMHO, if ( v11 == ( mandatory deprecate-/var/db/pkg )) occurs as some expect, it amounts to
a fork of freebsd to be more windows-like, as in "rather than /usr/local/etc
we have a registry" (I read once a post or webpage calling that a very
unwise design)... or as in "pkg_add has been enhanced to include portupgrade,
(19 .so. vs 3...) so portmaster, /var/db/pkg/, portmanager, portupgrade, one's
find/grep/awk/less manipulations of /var/db/pkg (python26 > python27 for
example), are all done away with; and a greater chance of irrecoverable
data loss [1] and a database FE to the flat files)... (pkg segfaults on my p4 in some
of the non-default cli; may be too memory-intensive for p2, p3 installs ... )etc...
I posted today a large post to the freebsd-ports list, and a post also to the
freebsd forums (thread: "Please explain to me")...

[1]
Please see the posts on those lists and the forum, where I go into greater detail.
Someday I could retract all these misgivings, but seeing no direct answers so far
I am pessimistic, to say the least...
__________________
FreeBSD 13-STABLE
Reply With Quote
  #7   (View Single Post)  
Old 23rd August 2012
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Not to mention the removal of yet-to-be /var/db/pkg - specific lightweight tools ( like portmanager); i.e., the next from-the-ground-up portmaster, portupgrade... without the programming expense of a hook into the sqlite database...
Reply With Quote
  #8   (View Single Post)  
Old 24th August 2012
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

A few more probable reasons.. (unless it is just documentation that is nonexistent yet...)

No clear equivalent to pkgdb -F (fixup of stale dependencies)
Untested portmaster resintall-all procedure per its manpage
A failed "make install", nowadays one can check the directory in /var/db/pkg with "ls"
Likewise a failed "make deinstall" ...
Nowadays, one can without a "failed to register" uncomment a Makefile line, and install two
ports which are in conflict (officially or unofficially)... saving time VS other more recommendable
ways.

Last edited by jb_daefo; 24th August 2012 at 09:44 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg_add --PREFIX ? sharris FreeBSD General 2 25th July 2011 04:31 PM
My version of pkg_add :) DNAeon FreeBSD Ports and Packages 26 15th October 2008 06:58 AM
pkg_add g95;g95 x.f95: cannot find g95 enpey OpenBSD Packages and Ports 8 27th August 2008 12:48 AM
pkg_add -r does not use exported packagesite kasse FreeBSD Ports and Packages 16 26th August 2008 08:42 PM
pkg_add error buba OpenBSD Packages and Ports 4 13th June 2008 03:29 PM


All times are GMT. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick