Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Upgrading 10.4 to 11.1

48 views
Skip to first unread message

Robert Fitzpatrick via freebsd-questions

unread,
Apr 30, 2018, 5:03:38 PM4/30/18
to
I did a freebsd-update fetch install on 10.4 and then the standard
upgrade to 11-RELEASE p9 with no problems. Now I'm ready to run upgrade
all the ports and did a portsnap fetch update first, but this doesn't
look right:

root@dev:~ # portupgrade -a
[Reading data from pkg(8) ... - 150 packages found - done]
** Port marked as IGNORE: www/apache24:
Invalid perl5 version 5.18
** Port marked as IGNORE: textproc/aspell:
Invalid perl5 version 5.18
...

Getting the Invalid perl5 for all the packages, I tried doing pkg
upgrade perl5 and ended up adding /usr/local/bin/perl and the ports
still looking at perl5.18 in /usr/bin/perl. Have I done something wrong
or need to handle Perl separate first?

--
Robert

_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Gökşin Akdeniz

unread,
Apr 30, 2018, 5:18:07 PM4/30/18
to
Mon, 30 Apr 2018 17:00:02 -0400 tarihinde
Robert Fitzpatrick via freebsd-questions
<freebsd-...@freebsd.org> yazmış:

> root@dev:~ # portupgrade -a
> [Reading data from pkg(8) ... - 150 packages found - done]
> ** Port marked as IGNORE: www/apache24:
> Invalid perl5 version 5.18
> ** Port marked as IGNORE: textproc/aspell:
> Invalid perl5 version 5.18
> ...
>
> Getting the Invalid perl5 for all the packages, I tried doing pkg
> upgrade perl5 and ended up adding /usr/local/bin/perl and the ports
> still looking at perl5.18 in /usr/bin/perl. Have I done something
> wrong or need to handle Perl separate first?
>
Default PERL version changed. So you have to upgrade to default PERL
version which is 5.26. The long and short of it you have solve that
problem by handling PERL as a stand alone upgrade.

I do upgrade all installed ports by deleting them first and
installing them again on major upgrades
--
Gökşin Akdeniz <goksin....@gmail.com>

Robert Fitzpatrick via freebsd-questions

unread,
Apr 30, 2018, 5:22:01 PM4/30/18
to
Gökşin Akdeniz wrote:
> I do upgrade all installed ports by deleting them first and
> installing them again on major upgrades

Yes, I was just thinking of doing. I moved old perl out of the way and
created a sym link to the new version in /usr/local/bin and now have
portupgrade working normally. Showing many packages deleted of course.

Is there a way to delete and put back all the packages currently installed?

Steve O'Hara-Smith

unread,
May 1, 2018, 3:01:36 AM5/1/18
to
On Mon, 30 Apr 2018 17:18:46 -0400
Robert Fitzpatrick via freebsd-questions <freebsd-...@freebsd.org>
wrote:

> Is there a way to delete and put back all the packages currently
> installed?

Here's one way using the handy pkg leaf alias to get packages with
no dependencies.

pkg leaf > my_packages
pkg delete -a
pkg install `cat my_packages`

If my_packages is large you may need to use xargs instead of
backticks.

--
Steve O'Hara-Smith <st...@sohara.org>

Doug Hardie

unread,
May 1, 2018, 5:49:43 AM5/1/18
to
> On 30 April 2018, at 23:23, Steve O'Hara-Smith <st...@sohara.org> wrote:
>
> On Mon, 30 Apr 2018 17:18:46 -0400
> Robert Fitzpatrick via freebsd-questions <freebsd-...@freebsd.org>
> wrote:
>
>> Is there a way to delete and put back all the packages currently
>> installed?
>
> Here's one way using the handy pkg leaf alias to get packages with
> no dependencies.
>
> pkg leaf > my_packages
> pkg delete -a
> pkg install `cat my_packages`
>
> If my_packages is large you may need to use xargs instead of
> backticks.

Interesting. The leaf command is not documented in the -l list or in the man page. However, it works just as described above.

-- Doug

Steve O'Hara-Smith

unread,
May 1, 2018, 6:53:27 AM5/1/18
to
On Tue, 1 May 2018 01:00:40 -0700
Doug Hardie <bc...@lafn.org> wrote:

> > On 30 April 2018, at 23:23, Steve O'Hara-Smith <st...@sohara.org> wrote:
> >
> > On Mon, 30 Apr 2018 17:18:46 -0400
> > Robert Fitzpatrick via freebsd-questions <freebsd-...@freebsd.org>
> > wrote:
> >
> >> Is there a way to delete and put back all the packages currently
> >> installed?
> >
> > Here's one way using the handy pkg leaf alias to get packages
> > with no dependencies.
> >
> > pkg leaf > my_packages
> > pkg delete -a
> > pkg install `cat my_packages`
> >
> > If my_packages is large you may need to use xargs instead of
> > backticks.
>
> Interesting. The leaf command is not documented in the -l list or in the
> man page. However, it works just as described above.

This is why

$ pkg help leaf
`leaf` is an alias to `query -e '%#r == 0' '%n-%v'`

There's a bunch of handy aliases defined in /usr/local/etc/pkg.conf

--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/

Trond Endrestøl

unread,
May 1, 2018, 7:07:11 AM5/1/18
to
On Tue, 1 May 2018 01:00-0700, Doug Hardie wrote:

> > On 30 April 2018, at 23:23, Steve O'Hara-Smith <st...@sohara.org> wrote:

> > pkg leaf > my_packages

>
> Interesting. The leaf command is not documented in the -l list or in the man page. However, it works just as described above.

Have a look at /usr/local/etc/pkg.conf.

--
Trond.

Robert Fitzpatrick via freebsd-questions

unread,
May 1, 2018, 7:33:09 AM5/1/18
to
Steve O'Hara-Smith wrote:
> On Mon, 30 Apr 2018 17:18:46 -0400
> Robert Fitzpatrick via freebsd-questions<freebsd-...@freebsd.org>
> wrote:
>
>> Is there a way to delete and put back all the packages currently
>> installed?
>
> Here's one way using the handy pkg leaf alias to get packages with
> no dependencies.
>
> pkg leaf> my_packages
> pkg delete -a
> pkg install `cat my_packages`
>
> If my_packages is large you may need to use xargs instead of
> backticks.
>

The pkg leaf doesn't seem to list all installed packages. It does not
list apache24 or aspell or autoconf and more. At first I thought it was
not listing packages not found in ports, but I see
mysql51-server-5.1.73_2 on the list.

--
Robert

Steve O'Hara-Smith

unread,
May 1, 2018, 7:47:24 AM5/1/18
to
On Tue, 01 May 2018 07:29:24 -0400
Robert Fitzpatrick <rob...@webtent.org> wrote:

> Steve O'Hara-Smith wrote:
> > On Mon, 30 Apr 2018 17:18:46 -0400
> > Robert Fitzpatrick via freebsd-questions<freebsd-...@freebsd.org>
> > wrote:
> >
> >> Is there a way to delete and put back all the packages currently
> >> installed?
> >
> > Here's one way using the handy pkg leaf alias to get packages
> > with no dependencies.
> >
> > pkg leaf> my_packages
> > pkg delete -a
> > pkg install `cat my_packages`
> >
> > If my_packages is large you may need to use xargs instead of
> > backticks.
> >
>
> The pkg leaf doesn't seem to list all installed packages. It does not
> list apache24 or aspell or autoconf and more. At first I thought it was
> not listing packages not found in ports, but I see
> mysql51-server-5.1.73_2 on the list.

It only shows packages with no dependents thus leaving out packages
that satisfy a dependency. Try pkg info -r on the ones you're not seeing
and see if that doesn't lead you to something in the list.

--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/

Robert Fitzpatrick via freebsd-questions

unread,
May 1, 2018, 8:41:30 AM5/1/18
to
Steve O'Hara-Smith wrote:
> On Tue, 01 May 2018 07:29:24 -0400
> Robert Fitzpatrick<rob...@webtent.org> wrote:
>
>> Steve O'Hara-Smith wrote:
>>> On Mon, 30 Apr 2018 17:18:46 -0400
>>> Robert Fitzpatrick via freebsd-questions<freebsd-...@freebsd.org>
>>> wrote:
>>>
>>>> Is there a way to delete and put back all the packages currently
>>>> installed?
>>> Here's one way using the handy pkg leaf alias to get packages
>>> with no dependencies.
>>>
>>> pkg leaf> my_packages
>>> pkg delete -a
>>> pkg install `cat my_packages`
>>>
>>> If my_packages is large you may need to use xargs instead of
>>> backticks.
>>>
>> The pkg leaf doesn't seem to list all installed packages. It does not
>> list apache24 or aspell or autoconf and more. At first I thought it was
>> not listing packages not found in ports, but I see
>> mysql51-server-5.1.73_2 on the list.
>
> It only shows packages with no dependents thus leaving out packages
> that satisfy a dependency. Try pkg info -r on the ones you're not seeing
> and see if that doesn't lead you to something in the list.
>

Very good, yes they do. When running the pkg install against my saved
list, it get kicked out on the first one. Do I need to remove the
versions from the list of packages?

root@dev:~ # pkg install `cat installed_packages`
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 6.4MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 31149 packages processed.
All repositories are up to date.
pkg: No packages available to install matching 'automake-1.14_1' have
been found in the repositories

--
Robert

Steve O'Hara-Smith

unread,
May 1, 2018, 8:53:47 AM5/1/18
to
On Tue, 01 May 2018 08:38:09 -0400
Robert Fitzpatrick via freebsd-questions <freebsd-...@freebsd.org>
wrote:

> Very good, yes they do. When running the pkg install against my saved
> list, it get kicked out on the first one. Do I need to remove the
> versions from the list of packages?

It would help if they change - sorry it's been a while since I last
did this.

--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/

RW via freebsd-questions

unread,
May 1, 2018, 1:01:56 PM5/1/18
to
On Tue, 1 May 2018 00:14:07 +0300
Gökşin Akdeniz wrote:

> Mon, 30 Apr 2018 17:00:02 -0400 tarihinde
> Robert Fitzpatrick via freebsd-questions
> <freebsd-...@freebsd.org> yazmış:
>
> > root@dev:~ # portupgrade -a
> > [Reading data from pkg(8) ... - 150 packages found - done]
> > ** Port marked as IGNORE: www/apache24:
> > Invalid perl5 version 5.18
> > ** Port marked as IGNORE: textproc/aspell:
> > Invalid perl5 version 5.18
> > ...
> >
> > Getting the Invalid perl5 for all the packages, I tried doing pkg
> > upgrade perl5 and ended up adding /usr/local/bin/perl and the ports
> > still looking at perl5.18 in /usr/bin/perl. Have I done something
> > wrong or need to handle Perl separate first?
> >
> Default PERL version changed. So you have to upgrade to default PERL
> version which is 5.26.

Aside from the perl problem, "portupgrade -a" probably wont work anyway
because portupgrade doesn't supports flavors

0 new messages