after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Kurt Jaeger
Hi!

Now that 10.1 is released, I re-built all the ports relevant to me via

poudriere bulk -f ~/pkg/all -j 10x

and then had a nice new repo to pkg update.

But: If I upgrade a 10.0 box to 10.1 and then ask them to use the
new repo, how can I enforce a complete reinstall of all packages
built on 10.1 instead of having a mix of old and new pkgs ?

-- 
p...@opsec.eu+49 171 3101372 6 years to go !
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Matthew Seaman
On 16/11/2014 08:25, Kurt Jaeger wrote:
> Now that 10.1 is released, I re-built all the ports relevant to me via
> 
> poudriere bulk -f ~/pkg/all -j 10x
> 
> and then had a nice new repo to pkg update.
> 
> But: If I upgrade a 10.0 box to 10.1 and then ask them to use the
> new repo, how can I enforce a complete reinstall of all packages
> built on 10.1 instead of having a mix of old and new pkgs ?

For a 10.0 to 10.1 upgrade, reinstalling everything is not generally
required.  However I assume you have your own reasons to want to do so.

You can force a re-install of all installed packages by:

 # pkg upgrade -f

If you want to selectively update just the packages installed from a
particular repo, or installed before a specific date, there isn't a
handy built-in way to do that.  You'll have to generate a list of
appropriate packages and feed it to pkg install -f using xargs(1) -- eg.

  # pkg query "%n-%v %An %Av" | grep "repository $reponame" \
| cut -d' ' -f 1 | xargs pkg install -f

  # date=$( date -j -f "%Y-%m-%d %H:%M:%S" "2014-10-16 00:00:00" +%s )
  # pkg query "%n-%v %t" | awk "{ if (\$2 < $date ) print \$1; }" \
| xargs pkg install -f

The business with 'date -j -f ...' is to convert a  date specified in
the usual way (year, month, day, hour, minutes, seconds) into the unix
epoch time, which can then be compared as an integer to the timestamp
pkg(8) produces.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Guido Falsi
On 11/16/14 09:25, Kurt Jaeger wrote:
> Hi!
> 
> Now that 10.1 is released, I re-built all the ports relevant to me via
> 
> poudriere bulk -f ~/pkg/all -j 10x
> 
> and then had a nice new repo to pkg update.
> 
> But: If I upgrade a 10.0 box to 10.1 and then ask them to use the
> new repo, how can I enforce a complete reinstall of all packages
> built on 10.1 instead of having a mix of old and new pkgs ?
> 

"pkg upgrade -f" worked fine for me.

-- 
Guido Falsi 
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Kurt Jaeger
Hi!

> "pkg upgrade -f" worked fine for me.

Thanks, works!

-- 
p...@opsec.eu+49 171 3101372 6 years to go !
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Mathieu Arnold
+--On 16 novembre 2014 10:50:48 +0100 Kurt Jaeger  wrote:
| Hi!
| 
|> "pkg upgrade -f" worked fine for me.
| 
| Thanks, works!

Note, for the record, that you're reinstalling the *exact* same packages.

-- 
Mathieu Arnold
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Guido Falsi
On 11/16/14 12:25, Mathieu Arnold wrote:
> +--On 16 novembre 2014 10:50:48 +0100 Kurt Jaeger  wrote:
> | Hi!
> | 
> |> "pkg upgrade -f" worked fine for me.
> | 
> | Thanks, works!
> 
> Note, for the record, that you're reinstalling the *exact* same packages.
> 

For me, that's exactly what I wanted to perform with that command. I
admit with my answer I assumed he wanted to do the same I did.

-- 
Guido Falsi 
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Kurt Jaeger
Hi!

> |> "pkg upgrade -f" worked fine for me.

> | Thanks, works!

> Note, for the record, that you're reinstalling the *exact* same packages.

Thanks for the hint. I'll compare them at the next opportunity.

-- 
p...@opsec.eu+49 171 3101372 6 years to go !
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Mathieu Arnold


+--On 16 novembre 2014 14:36:56 +0100 Kurt Jaeger  wrote:
| Hi!
| 
|> |> "pkg upgrade -f" worked fine for me.
| 
|> | Thanks, works!
| 
|> Note, for the record, that you're reinstalling the *exact* same packages.
| 
| Thanks for the hint. I'll compare them at the next opportunity.

Well, you don't need to compare them, we build packages for branches on the
oldest supported release, so 8.4 built on 8.4, the packages for 9.1, 9.2
and 9.3 built on 9.1, and the packages for 10.0 and 10.1 built on 10.0 :-)

-- 
Mathieu Arnold
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-16 Thread Kurt Jaeger
Hi!

> | Thanks for the hint. I'll compare them at the next opportunity.

> Well, you don't need to compare them, we build packages for branches on the
> oldest supported release, so 8.4 built on 8.4, the packages for 9.1, 9.2
> and 9.3 built on 9.1, and the packages for 10.0 and 10.1 built on 10.0 :-)

I build on 10.1 for repo.opsec.eu. And that's why I wanted to force
the upgrade. I *guess* if I build a package in a 10.0 poudriere
and in a 10.1 poudriere, they differ ?

-- 
p...@opsec.eu+49 171 3101372 6 years to go !
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: after 10.0 -> 10.1 rebuild: how to force pkg reinstall ?

2014-11-18 Thread Mark Felder


On Sun, Nov 16, 2014, at 07:43, Kurt Jaeger wrote:
> Hi!
> 
> > | Thanks for the hint. I'll compare them at the next opportunity.
> 
> > Well, you don't need to compare them, we build packages for branches on the
> > oldest supported release, so 8.4 built on 8.4, the packages for 9.1, 9.2
> > and 9.3 built on 9.1, and the packages for 10.0 and 10.1 built on 10.0 :-)
> 
> I build on 10.1 for repo.opsec.eu. And that's why I wanted to force
> the upgrade. I *guess* if I build a package in a 10.0 poudriere
> and in a 10.1 poudriere, they differ ?
> 

Yes. But if you don't want to maintain two repositories it's safe to
have one repository built against 10.0 and install those packages on
10.0, 10.1, 10.2... etc :-)
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"