[Bug 296467] pkg upgrade installs unrelated, unnecessary other packages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Jul 2026 06:59:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296467 --- Comment #6 from wbe@psr.com --- Part 1: Reply to Comment 5 # pkg which -g \*/libgcc_s.so.1 */libgcc_s.so.1 was installed by package gcc13-13.3.0_3 */libgcc_s.so.1 was installed by package gcc14-14.2.0_4 That makes sense: As I mentioned in the Description, gcc13 and gcc14 are installed because pkg has them as dependencies for packages I want, such as emacs (though *why* they would need gcc-anything as a dependency is still a mystery to me). > I would suggest avoiding making pkg deal with orphaned files > from any prior activities. I would also suggest making sure > no orphaned files are left when you are done. When you speak of orphaned files, are you talking about the package files as installed by pkg (the ones that "pkg which $filename" would list, like libgcc_s.so.1 above, or do you mean the /var/db/pkg/... and /var/cache/pkg/... files that might be "orphaned" by deleting the old -rFreeBSD repository description files and directories? Part 2: GOOD NEWS! It appears to be fixed! I tried what you described: I changed the repo description in /usr/local/etc/pkg/repos/FreeBSD.conf from FreeBSD: to FreeBSD-ports: and used the URL from /etc/pkg/FreeBSD.conf except /latest instead of /quarterly. No attempt to clean up anything in /var/db/pkg/. "pkg update" said "pkg: Repository FreeBSD-ports has a wrong packagesite, need to re-create database", which it did, and now "pkg upgrade expat" offers to upgrade JUST the one file, no spurious extras! Yay! :-) So, now the only issue is whether deleting the "FreeBSD"-repo-related files under /var/db/pkg/ would break something, or will pkg not care since it's no longer listed in the .conf files as a repository? Thanks, Mark! -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.