[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to not update package list through plasma discover ?



On 11/06/2024 18:10, Erwan David wrote:
I'll be temporarily with a bad connexion. During this time I'd like plasma-discover to not update the package list. How can I do this ?

There is no option in discover for this. I can remove the package but that would be a bit harsh

You can create a dummy libpackagekitqt5-1 package which gets rid integration between KDE ecosystem and debian packaging world. My user-case was to use Discover for Flathub only.

1. Open a super-user session.
2. Install equivs package.
apt install equivs
3. Create a temp folder and move to it.
cd $(mktemp -d)
4. Prepare a equivs manifest.
cat << EOF > libpackagekitqt5-1.equivs
Package: libpackagekitqt5-1
Version: 99:99
Maintainer: John Doe <john.doe@mail.com>
Architecture: all
Description: dummy libpackagekitqt5-1 package
 A dummy package with a version number so high that the real packages
 will never reach it.
EOF
5. Compile it.
equivs-build libpackagekitqt5-1.equivs
6. Install it.
apt install ./libpackagekitqt5-1_99_all.deb

Dummy package partially breaks kcm_regionandlang module (because it uses packagekit in order to install new locale packages).
kcmshell5 kcm_regionandlang

If you want to revert this change, force a downgrade from repository version. apt-get install libpackagekitqt5-1=$(apt-cache show libpackagekitqt5-1 | grep -oP '(^Version: )\K.*' | tail +2)

For futher information.
https://wiki.debian.org/Packaging/HackingDependencies

Regards.


Reply to: