From owner-freebsd-questions@freebsd.org Thu Aug 27 04:33:04 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AAF373C64C0 for ; Thu, 27 Aug 2020 04:33:04 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BcVG70WMzz476P for ; Thu, 27 Aug 2020 04:33:02 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 07R4WtYh074233 for ; Wed, 26 Aug 2020 22:32:55 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org From: Gary Aitken Subject: install, update, pkgs consistency To: FreeBSD Mailing List Message-ID: <8b959f78-5e7e-d019-5d97-8a60bcfe477a@dreamchaser.org> Date: Wed, 26 Aug 2020 22:31:30 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Wed, 26 Aug 2020 22:32:55 -0600 (MDT) X-Rspamd-Queue-Id: 4BcVG70WMzz476P X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-1.46 / 15.00]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.04)[0.037]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.71)[-0.706]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; NEURAL_HAM_MEDIUM(-0.49)[-0.492]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2020 04:33:04 -0000 I'm confused about the synchronization between a sys install, sys update, and packages (as opposed to ports). It was my understanding that packages are built to be consistent with the OS, so that once the OS version is installed, any "pkg install" is more-or-less guaranteed to be consistent and compatible with the OS and other packages being installed. true? If I install a package shortly after installing the OS, then some months later delete the package and install it again, will the same version be installed (assuming I have not updated the system)? When the OS is upgraded, e.g. for security patches using freebsd-update, does the package collection remain unchanged, or is it updated as well? By updated I don't mean the packages installed on the machine at the time of the update, but the packages which will be installed should a "pkg install" be done. If I install packages, then some months later update the system (freebsd-update), could some of the previously installed packages no longer function properly? If I install packages, then some months later update the system, then install more packages, could some of the new packages not function (or not install) because of incompatibilities with previously installed packages? Why does /var/cache/pkg show multiple versions, some dated after the date of the installed system, if pkgs are supposed to be tied to the original sys install or update? In this case, the installed system was built on 2020-01-28, The files in /var/db/freebsd-update are dated 2020-03-14. But there are multiple package versions in the cache after those dates: uname -a: ...FreeBSD 11.3-RELEASE-p6 #0: Tue Jan 28 09:55:39 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 /var/db/freebsd-update: 14 Mar 14 17:16 f465c37...-rollback -> install.IUk7v0 12288 Mar 14 17:16 files 512 Mar 14 17:16 install.IUk7v0 800 Jan 28 2020 pub.ssl 75 Mar 14 17:15 serverlist 75 Mar 14 17:15 serverlist_full 25 Mar 14 17:15 serverlist_tried 150 Mar 14 17:15 tINDEX.present 112 Mar 14 17:15 tag /var/cache/pkg: 1593004 Jan 29 2020 bash-5.0.11-518f921f70.txz 26 Mar 14 17:07 bash-5.0.11.txz -> bash-5.0.11-518f921f70.txz 1591908 May 13 19:29 bash-5.0.16-e0c962f411.txz 26 Jun 3 17:24 bash-5.0.16.txz -> bash-5.0.16-e0c962f411.txz 1592200 Aug 7 19:26 bash-5.0.17-254bcebb38.txz 26 Aug 26 10:57 bash-5.0.17.txz -> bash-5.0.17-254bcebb38.txz I recall seeing something about a "quarterly snapshot" of ports. Is there a consistent quarterly snapshot of pkgs and ports, so that pkgs and ports from that snapshot should be able to be intermixed? If so, how does one use it? Finally, is there an easy way to purge obsolete files from /var/cache/pkg? I don't see anything in man pkg indicating how to do this. Thanks, Gary