From nobody Wed Jun 19 22:25:30 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W4J9N4KgFz5P43Z for ; Wed, 19 Jun 2024 22:25:44 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [147.160.157.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "A1-48603", Issuer "A1-48603" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W4J9M3sZ0z4tMS for ; Wed, 19 Jun 2024 22:25:43 +0000 (UTC) (envelope-from doug@safeport.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 147.160.157.40 is neither permitted nor denied by domain of doug@safeport.com) smtp.mailfrom=doug@safeport.com Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.17.1/8.17.1) with ESMTPS id 45JMPUvi026417 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 19 Jun 2024 22:25:30 GMT (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.17.1/8.17.1/Submit) with ESMTP id 45JMPU7p026414; Wed, 19 Jun 2024 22:25:30 GMT (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Wed, 19 Jun 2024 22:25:30 +0000 (UTC) From: doug Reply-To: doug@safeport.com To: "D'Arcy Cain" cc: questions@freebsd.org Subject: Re: Orphaned packages In-Reply-To: <7b41f86e-98a5-43d5-b778-99d5d4e89ec4@druid.net> Message-ID: <487d1a73-879a-92f7-b8d-dd42961c06@safeport.com> References: <20240616130208.000069e1@seibercom.net> <7b41f86e-98a5-43d5-b778-99d5d4e89ec4@druid.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.04 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.941]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_SOFTFAIL(0.00)[~all]; HAS_XAW(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; DMARC_NA(0.00)[safeport.com]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; HAS_REPLYTO(0.00)[doug@safeport.com] X-Rspamd-Queue-Id: 4W4J9M3sZ0z4tMS On Sun, 16 Jun 2024, D'Arcy Cain wrote: > On 2024-06-16 13:02, Gerard E. Seibert wrote: >> I recently updated to FreeBSD 14.1-RELEASE. I use pourdriere and >> updated its jail. I then ran "/usr/sbin/pkg version -voPL= | sort -d" >> to get a list of packages that needed updating. There are over a dozen >> files listed as "orphaned" in the list. I fed the list to poudriere and >> it appears to have updated all of the packages; however when I ran >> "/usr/sbin/pkg version -voPL= | sort -d" again, it still listed the >> same packaged as orphaned. >> >> Shouldn't poudriere have taken care of this automatically, or is there >> something I have to do to get things in order? > > I ran that command on my build server and the output seemed reasonable. I had > a few packages that needed updating. Of more interest was running it on one > of my client servers and got "pkg: Cannot find ports tree: unable to open > /usr/ports/Makefile". Perhaps your /usr/ports is not the same as the ports > tree that poudriere uses. The pkg command has a --jail option but when I > added that it gave me an invalid option error. > > I have /usr/ports set as a symlink to my primary jail's ports folder. Maybe > that's why mine is more normal. > > ports -> /usr/local/poudriere/ports/local pkg alias -- give a list of commands pkg prime-origins -- lists commands installed pkg autoremove -- removes orphaned packages On a mail server I run: doug# pkg prime-origins mail/alpine mail/cyrus-imapd30 security/cyrus-sasl2-sql mail/imapsync databases/mysql57-server ports-mgmt/pkg mail/postfix net/rsync --------------- doug# pkg autoremove Checking integrity... done (0 conflicting) Nothing to do. You have to be root to do autoremove. It lists the packages that will be remove and asks yes or no. Doug