Discussion:
Upgrading 10.4 to 11.1
(too old to reply)
Robert Fitzpatrick via freebsd-questions
2018-04-30 21:00:02 UTC
Permalink
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:

***@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
Gökşin Akdeniz
2018-04-30 21:14:07 UTC
Permalink
Mon, 30 Apr 2018 17:00:02 -0400 tarihinde
Robert Fitzpatrick via freebsd-questions
Post by Robert Fitzpatrick via freebsd-questions
[Reading data from pkg(8) ... - 150 packages found - done]
Invalid perl5 version 5.18
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 <***@gmail.com>
Robert Fitzpatrick via freebsd-questions
2018-04-30 21:18:46 UTC
Permalink
Post by Gökşin Akdeniz
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?
--
Robert
Steve O'Hara-Smith
2018-05-01 06:23:05 UTC
Permalink
On Mon, 30 Apr 2018 17:18:46 -0400
Post by Robert Fitzpatrick via freebsd-questions
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 <***@sohara.org>
Doug Hardie
2018-05-01 08:00:40 UTC
Permalink
Post by Steve O'Hara-Smith
On Mon, 30 Apr 2018 17:18:46 -0400
Post by Robert Fitzpatrick via freebsd-questions
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
2018-05-01 09:44:03 UTC
Permalink
On Tue, 1 May 2018 01:00:40 -0700
Post by Doug Hardie
Post by Steve O'Hara-Smith
On Mon, 30 Apr 2018 17:18:46 -0400
Post by Robert Fitzpatrick via freebsd-questions
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
2018-05-01 10:13:31 UTC
Permalink
Post by Doug Hardie
Post by Steve O'Hara-Smith
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
2018-05-01 11:29:24 UTC
Permalink
Post by Steve O'Hara-Smith
On Mon, 30 Apr 2018 17:18:46 -0400
Post by Robert Fitzpatrick via freebsd-questions
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
2018-05-01 11:43:52 UTC
Permalink
On Tue, 01 May 2018 07:29:24 -0400
Post by Robert Fitzpatrick via freebsd-questions
Post by Steve O'Hara-Smith
On Mon, 30 Apr 2018 17:18:46 -0400
Post by Robert Fitzpatrick via freebsd-questions
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
2018-05-01 12:38:09 UTC
Permalink
Post by Steve O'Hara-Smith
On Tue, 01 May 2018 07:29:24 -0400
Post by Robert Fitzpatrick via freebsd-questions
Post by Steve O'Hara-Smith
On Mon, 30 Apr 2018 17:18:46 -0400
Post by Robert Fitzpatrick via freebsd-questions
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?

***@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
2018-05-01 12:50:08 UTC
Permalink
On Tue, 01 May 2018 08:38:09 -0400
Post by Robert Fitzpatrick via freebsd-questions
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
2018-05-01 16:58:28 UTC
Permalink
On Tue, 1 May 2018 00:14:07 +0300
Post by Gökşin Akdeniz
Mon, 30 Apr 2018 17:00:02 -0400 tarihinde
Robert Fitzpatrick via freebsd-questions
Post by Robert Fitzpatrick via freebsd-questions
[Reading data from pkg(8) ... - 150 packages found - done]
Invalid perl5 version 5.18
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

Continue reading on narkive:
Loading...