Upgrading 10.4 to 11.1
Robert Fitzpatrick
robert at webtent.org
Tue May 1 12:38:13 UTC 2018
Steve O'Hara-Smith wrote:
> On Tue, 01 May 2018 07:29:24 -0400
> Robert Fitzpatrick<robert at webtent.org> wrote:
>
>> Steve O'Hara-Smith wrote:
>>> On Mon, 30 Apr 2018 17:18:46 -0400
>>> Robert Fitzpatrick via freebsd-questions<freebsd-questions at 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 at 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
More information about the freebsd-questions
mailing list