Re: Deletion of just installed port-packages (excluding base): success
- In reply to: Graham Perrin : "Deletion of just installed port-packages (excluding base): success"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Aug 2025 19:59:26 UTC
Terminology Excluding base does not necessarily mean that affected packages will be solely from FreeBSD-ports. Affected packages are, for example, likely to include those from the FreeBSD-kmods repo. For the scripted session below, I highlighted drm-61-kmod. ---- Script started on Thu Aug 7 18:29:22 2025 root@pkg:~ # pkg install -qUy drm-kmod ===== Message from drm-61-kmod-6.1.128.1403000_5: -- The drm-61-kmod port can be enabled for amdgpu (for AMD GPUs starting with the HD7000 series / Tahiti) or i915kms (for Intel APUs starting with HD3000 / Sandy Bridge) through kld_list in /etc/rc.conf. radeonkms for older AMD GPUs can be loaded and there are some positive reports if EFI boot is NOT enabled. For amdgpu: kld_list="amdgpu" For Intel: kld_list="i915kms" For radeonkms: kld_list="radeonkms" Please ensure that all users requiring graphics are members of the "video" group. Please note that this package was built for FreeBSD 14.3. If this is not your current running version, please rebuild it from ports to prevent panics when loading the module. root@pkg:~ # pkg query '%At %Av' drm-61-kmod FreeBSD_version 1403000 repo_type binary repository FreeBSD-kmods root@pkg:~ # pkg query %n | grep -vEe '^(FreeBSD-.+)' | xargs pkg delete -fqy You may need to manually remove /usr/local/etc/pkg.conf if it is no longer needed. root@pkg:~ # pkg bootstrap -y Bootstrapping pkg from pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/base_release_3, please wait... pkg: Attempted to fetch pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/base_release_3/Latest/pkg.pkg pkg: Attempted to fetch pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/base_release_3/Latest/pkg.txz pkg: Error: Not Found A pre-built version of pkg could not be found for your system. Bootstrapping pkg from pkg+http://pkg.freebsd.org/FreeBSD:14:amd64/latest, please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done Installing pkg-2.2.1... Extracting pkg-2.2.1: 0% … Extracting pkg-2.2.1: 100% root@pkg:~ # pkg install -qUy pkg-provides pkg: Loading of plugin 'provides' failed: Cannot open "/usr/local/lib/pkg//provides.so" pkg: Plugins cannot be loaded root@pkg:~ # pkg-static install -qUy pkg-provides ===== Message from pkg-provides-0.7.4: -- In order to use the pkg-provides plugin you need to enable plugins in pkg. To do this, uncomment the following lines in /usr/local/etc/pkg.conf file and add pkg-provides to the supported plugin list: PKG_PLUGINS_DIR = "/usr/local/lib/pkg/"; PKG_ENABLE_PLUGINS = true; PLUGINS [ provides ]; After that run `pkg plugins' to see the plugins handled by pkg. root@pkg:~ # pkg iinfo drm-61-kmod pkg: No package(s) matching drm-61-kmod root@pkg:~ # freebsd-version -kru ; uname -mvKU 14.3-RELEASE-p1 14.3-RELEASE-p1 14.3-RELEASE-p1 FreeBSD 14.3-RELEASE-p1 releng/14.3-n271434-2ea99b8ed142 GENERIC amd64 1403000 1403000 root@pkg:~ # pkg repos -el | sort -f FreeBSD-base FreeBSD-kmods FreeBSD-ports root@pkg:~ # echo $SHELL /bin/csh root@pkg:~ # exit exit Script done on Thu Aug 7 18:36:58 2025