From owner-freebsd-questions@freebsd.org Tue May 1 11:44:00 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC7BAFA8E58 for ; Tue, 1 May 2018 11:44:00 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 526DF70A76 for ; Tue, 1 May 2018 11:44:00 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1525175041; x=1527767041; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=8W+AhoVzKi7WiUvYd/awzd/C17tEvd3Rb4blrDQuyWY=; b=hjfoGnd0iaDunLoIIuWb3AlTM7Ap1XWdwUVkOqPxxfMa3KGZwf7uySYWJQOjaAl7EQE6T2WQY1v+t5ZmTLumyALdCYrDlDbaZDbQRTmuj7cBO2CsfGaTfWl92Rt376OX7sgaVXnpHQf1o3iJU4SogqsnXGqbkb3lXfmdlIs16Co= X-Thread-Info: NDI1MC4xMi45ODAwMDAwMDRjNzYwOC5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r2.us-east.aws.in.socketlabs.com (r2.us-east.aws.in.socketlabs.com [54.85.171.149]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 1 May 2018 07:43:57 -0400 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r2.us-east.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 1 May 2018 07:43:54 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90_1 (FreeBSD)) (envelope-from ) id 1fDThI-000K7a-NV; Tue, 01 May 2018 11:43:52 +0000 Date: Tue, 1 May 2018 12:43:52 +0100 From: Steve O'Hara-Smith To: Robert Fitzpatrick Cc: goksin.akdeniz@gmail.com, Robert Fitzpatrick via freebsd-questions 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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2018 11:44:01 -0000 On Tue, 01 May 2018 07:29:24 -0400 Robert Fitzpatrick wrote: > Steve O'Hara-Smith wrote: > > On Mon, 30 Apr 2018 17:18:46 -0400 > > Robert Fitzpatrick via freebsd-questions > > 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/