|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
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 Can pkg_add be more intelligent, i.e. using RegExp to match the package ? Sincerely! |
|
|||
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! |
|
|||
I see now. thank you !
|
|
|||
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.
|
|
|||
Quote:
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 |
|
|||
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...
|
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|
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 |