Hi Philip,
On 2012-05-20 13:20, Philip wrote:
> okay, figured it out
> adding
>
> setenv PACKAGESITE
> "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/Latest/"
>
> to the end of /root/.cshrc
>
> then log out and in again seems to fix the issue.
HINT#1: Your own solution above does work - but is it easier to just set
and export the BRANCH variable to either:
BRANCH=8.3-release;
export BRANCH;
OR
BRANCH=8-stable;
export BRANCH;
Remember that "8.3-release" is a frozen snapshot of packages at the time
of 8.3 release - and it will never receive any updates - while
"8-stable" branch will...
HINT#2: I'm not a big fan of the PACKAGESITE env var it is easier and
shorter to use PACKAGEROOT to point to your nearest mirror ftp/http
server like this:
PACKAGEROOT=http://ftp2.de.freebsd.org/;
export PACKAGEROOT;
See list of FreeBSD ftp/http mirrors here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html
If PACKAGESITE is unset and PACKAGEROOT and/or BRANCH is set pkg_upgrade
will construct the correct path.
About one year ago or more I reported these things to Dominic Fandrey
the creator of "bsdadminscripts" - and I believe that he has
incoroprated the fixes in the release of bsdadminscripts that he was
working on - but the release never came.
/Uffe
>
> should it be "Latest" or "All" ?
>
>
>
> On 20/05/2012 11:41, Philip wrote:
>> when I do "pkg_add -r somepackage"
>> the program gets the package from
>> "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/Latest/"
>> so it "just works".
>>
>> however when I do "pkg_upgrade -a"
>> I get
>> fetch:
>> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-release/INDEX: File
>> unavailable
>> (e.g., file not found, no access)
>>
>> how do I fix this?
>> [annoyed]
>> why doesn't this "just work"?; surely it's a bug when it doesn't. This is
>> on a freshly installed
>> 8.3 machine.
>>
>> I have done "man pkg_upgrade" and "man uma" and it refers to PACKAGESITE but
>> doesn't actually tell
>> you how to fix the thing.
>> [/annoyed]
>>
>> thanks, Philip
>>
>> On 09/05/2012 07:43, Uffe Jakobsen wrote:
>>>
>>>
>>> On 2012-04-30 12:20, Philip wrote:
>>>>
>>>> The problem is that the freebsd install isn't well patched because I
>>>> just can't get along with the package management as well as debian apt.
>>>>
>>>
>>> Can you be more specific as to what problems you have with FreeBSD package
>>> management - maybe we
>>> could help you ? an example would be fine.
>>>
>>> I agree that the current FreeBSD package management lacks features and/or
>>> works differently than
>>> you'd expect when used to the linux ones.
>>>
>>> But until the "pkgng" package management is ready I've found a simple
>>> workaround that in my opinion
>>> makes the current FreeBSD package management usable.
>>>
>>> 0) become root
>>>
>>> 1) Add the the "bsdadminscripts" package to your insstallation:
>>>
>>> pkg_add -r bsdadminscripts
>>>
>>> 2) make sure that you have a /usr/ports directory:
>>>
>>> mkdir -p /usr/ports
>>>
>>> 3) run "pkg_upgrade -a" to refresh all you currrently installed packages to
>>> the latest versions.
>>>
>>> 4) run "pkg_upgrade some_pkg_name" to refresh just the one package and its
>>> dependencies.
>>>
>>>
>>> HINT: -n option is a dry-run flag - shows what would have been done if
>>> command was issued without
>>> the -n option
>>>
>>> HINT: -v option is a verbose flag - shows more detailed output.
>>>
>>> Hope that helps.
>>>
>>> /Uffe
>>>
>>>
_______________________________________________
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech