Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Mar 2011 20:46:47 -0500
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        Yue Wu <vanopen@gmail.com>
Cc:        ml-freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Question about packages installed via `pkg_add -r`
Message-ID:  <AANLkTinhdiEPxyvBGDGWS%2B3Y%2B69YzW7_9NeUs4B2gVTT@mail.gmail.com>
In-Reply-To: <20110306011433.GA21857@fbsd.t60.cpu>
References:  <20110305150436.GA2175@fbsd.t60.cpu> <20110305154817.GQ30336@core.byshenk.net> <4D72A069.90104@FreeBSD.org> <20110306010015.GC4160@fbsd.t60.cpu> <AANLkTi=_K=q3O3jZZLeDjj9AsckWzu9Sz-Ju7kxhknn9@mail.gmail.com> <20110306011433.GA21857@fbsd.t60.cpu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5 March 2011 20:14, Yue Wu <vanopen@gmail.com> wrote:
> On Sat, Mar 05, 2011 at 08:02:47PM -0500, illoai@gmail.com wrote:
>> On 5 March 2011 20:00, Yue Wu <vanopen@gmail.com> wrote:
>> > Hello, sorry for poor English, I will try to explan clearer with my
>> > best.
>> >
>> > On Sat, Mar 05, 2011 at 04:48:17PM +0100, Greg Byshenk wrote:
>> >> On Sat, Mar 05, 2011 at 11:04:36PM +0800, Yue Wu wrote:
>> >>
>> >> > I'm trying to use package instead of ports these day, but a few
>> >> > questions have:
>> >> >
>> >> > 1. How to reserve packages that fetched via `pkg_add -r`?
>> >> >
>> >> > 2. How to know if there are updates for packages, and how to update=
?
>> >>
>> >> For (1), do you mean 'preserve', as in save a copy? =A0If so, then
>> >> 'portmaster -b [...]' will save a backup copy of installed packages.
>> >
>> > Yes, I mean 'preserve'. I've maned portmaster, seems -b is for a
>> > installed package, so it will preserve it by packing up the files from=
 a
>> > installed package, why not preserve it just when fetching with `pkg_ad=
d
>> > -r`? I think it's the best way, I don't like the portmaster way to do =
it
>> > after.
>>
>> from man 1 pkg_add:
>>
>> =A0 =A0 =A0-K, --keep
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0Keep any downloaded package in PKGDIR if it i=
s defined or in cur-
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0rent directory by default.
>>
>
> Thanks, sorry for no attentively reading ;p
>
> Another question arises after checking the pkg 'pkg_add' saves, why the
> pkg doesn't have a version appended to its name, it's hard to know the
> version the pkg downloaded...

Without digging in too deeply (I use ports, so I'm not the
_most_ knowledgeable on packages) I believe it has to
do with the fact that the packages are symlinked to non-
versioned names on the distribution server(s), probably
to simplify fetching.  The packages themselves should
have the version information in their metadata somewhere,
which might be possible to rename via script.

I apologise if that isn't helpful.

--=20
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinhdiEPxyvBGDGWS%2B3Y%2B69YzW7_9NeUs4B2gVTT>