Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2018 12:43:52 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        Robert Fitzpatrick <robert@webtent.org>
Cc:        goksin.akdeniz@gmail.com, Robert Fitzpatrick via freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Upgrading 10.4 to 11.1
Message-ID:  <20180501124352.9fd8fc6df7ee54537e25d25f@sohara.org>
In-Reply-To: <5AE84F94.2050604@webtent.org>
References:  <5AE783D2.40004@webtent.org> <20180501001407.7752facafb7593fd6aa252c1@gmail.com> <5AE78836.30106@webtent.org> <20180501072305.faafbe6cf2a13d3e24156568@sohara.org> <5AE84F94.2050604@webtent.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tue, 01 May 2018 07:29:24 -0400
Robert Fitzpatrick <robert@webtent.org> wrote:

> Steve O'Hara-Smith wrote:
> > On Mon, 30 Apr 2018 17:18:46 -0400
> > Robert Fitzpatrick via freebsd-questions<freebsd-questions@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/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180501124352.9fd8fc6df7ee54537e25d25f>