On 08/08/11 13:48, Vladimir Marek wrote:
> [...]
>
>>> So I thought, is it possible to update all packages which are 'older'
>>> than a given timestamp?
>>
>> There are no 'package matching algebra' operators if that's what
>> you're asking for.  That is, there is currently no built-in way to
>> list all packages older than given timestamp, etc.
>
> I see. Is pkg intended to be able to update to 'build xyz' or 'sru 123'?
> Or it is intended only to be updated to latest version available?

You are generally intended to be able to move the *whole* system or 
*specific parts* forward.

Going backwards is not supportable from a general standpoint when 
talking about downgrading the *whole* system.  You can downgrade 
specific packages by simply explicitly naming older versions.

> Recently I was updating from build 160 to 171. That is not possible
> directly. So I ran something like
>
> pkg update -v --be-name 164 [email protected],5.11-0.164
> ...
> pkg update -v --be-name 165 [email protected],5.11-0.165
> ...
> pkg update -v --be-name 171 [email protected],5.11-0.171
>
> Then I found out that wget is broken, because it is linked to old
> openssl libraries (0.9.6 or something) which are not there anymore. So I
> ran just
>
> pkg update
>
> and that installed latest bits and fixed things.
>
> I guess that's because entire 164, 165 and 171 does list wget as a
> dependency, so pkg had no reason updating it. But is there a way of
> going to 171 without running plain 'pkg update'? Maybe I should not use
> 'pkg update entire@...' but rather 'pkg update redistributable@...'?
>
> Or am I completely missing the point? :)

What you were doing was the right way to move between builds.  However, 
packages in the userland conslidation are not currently "tied" to 
specific OS builds, so when you update to 'entire@<some_version>' you're 
only updating packages that *have* to be updated to match what you 
requested.  When you type 'pkg update', you're asking the system to 
update everything it can.

This will work better in future builds once the userland packages are 
tied together with the build again.

-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to