I installed some self-built deb packages (PAM) with
sudo dpkg --force-all -i /opt/bzr/build-area/*.deb
tree
is:
/opt/bzr/build-area
.
├── libpam0g_1.1.8-3ubuntu1_amd64.deb
├── libpam0g-dev_1.1.8-3ubuntu1_amd64.deb
├── libpam-cracklib_1.1.8-3ubuntu1_amd64.deb
├── libpam-doc_1.1.8-3ubuntu1_all.deb
├── libpam-modules_1.1.8-3ubuntu1_amd64.deb
├── libpam-modules-bin_1.1.8-3ubuntu1_amd64.deb
├── libpam-runtime_1.1.8-3ubuntu1_all.deb
├── pam_1.1.8-3ubuntu1_amd64.build
├── pam_1.1.8-3ubuntu1_amd64.changes
├── pam_1.1.8-3ubuntu1.diff.gz
├── pam_1.1.8-3ubuntu1.dsc
└── pam_1.1.8.orig.tar.gz
Important: What happens when a new official Ubuntu PAM version is released and I run
apt dist-upgrade -y
? Will it overwrite my own packages?Optional: Do I need
--force-all
indpkg -i
?Optional: https://code.launchpad.net/~ubuntu-core-dev/pam/ubuntu looks like a "dev branch" to me? Does a "stable branch" exist? How to get it with bzr?
Related to: https://unix.stackexchange.com/a/382363/239596
apt-mark hold libpam0g libpam0g-dev libpam-cracklib libpam-doc libpam-modules libpam-modules-bin libpam-runtime
(and unhold them withapt-mark unhold ...
). This will probably cause numerous other packages that depend on newer pam packages to also be held. You're better off downloading the source package for the new version of pam, patching it again, compiling and installing. Then use apt-mark to hold them (until the next time this needs to be done).