Re: Package management tool
Hi Marc, yes, I agree. I will again drop DEP-11 (package) meta-data support and limit APT translations (see attachments). Best regards, -Sedat- On Sun, Jan 21, 2024 at 8:08 PM Marc Haber wrote: > > Hi, > > thanks for your comments. I have in the mean time decided that plasma > discover is probably not the correct tool to maintain a Debian system > and will continue to recommend using the command line tools or synaptic > if a clickable frontend is absolutely desired by the local user even if > KDE is being used. > > Greetings > Marc > > -- > - > Marc Haber | "I don't trust Computers. They | Mailadresse im Header > Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 > Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 > HELP-1: https://askubuntu.com/questions/823329/how-do-i-disable-fetching-of-dep-11-files HELP-2: https://askubuntu.com/questions/775069/what-is-appstream-why-is-it-installed-what-is-it-doing/ HELP-3: https://askubuntu.com/a/1212176/1046623 dileks writes: I have added DefaultEnabled "false"; in section deb::DEP-11 (see /etc/apt/apt.conf.d/50appstream) to avoid the download of the DEP-11 metadata. To disable all unwanted download of DEP-11 metadata and especially icons I have set explicitly or changed to DefaultEnabled "false"; (see 60apper and 60icons* files and deb::DEP-11-icons* sections). The appstream cache is refreshed and stored here with 19MiB of total size on my system: root# LC_ALL=C du -s -h /var/cache/app-info 19M /var/cache/app-info UPDATE: Some numbers of today's apt-get update: Reduced download size from normally approx. 50MiB down to 1,5MiB. UPDATE-2: Shows all DEP-11 APT configs: root# apt-config dump | grep DEP-11 Note-1: Involved are the APT configs of the packages appstream, apper and apt-config-icons. Note-2: I do not use GUI based package-managers like plasma-discover and gnome-software to upgrade software which require a refresh of the DEP-11 metadata and icons. -dileks // 26-FEB-2020: UPDATE-2: Shows all DEP-11 APT configs: root# apt-config dump | grep DEP-11 -dileks // 22-FEB-2020: Update 2020-02-22: "Numbers talk, bullshit walks." (Linus Torvalds) -dileks // 21-FEB-2020: Initial version HELP: https://askubuntu.com/questions/74653/how-can-i-remove-the-translation-entries-in-apt/ HELP: http://users.ox.ac.uk/~bioc1289/post/2013/01/right-way-to-not-download-apt-translation.html HELP: https://askubuntu.com/a/1213153/1046623 I do not want to download German APT translation files. As a comprise I have set explicitly in a new /etc/apt/apt.conf.d/99translations file with order first English then None translations: Acquire::Languages { "en"; "none"; }; I have removed all existing German translation files via rm -v /var/lib/apt/lists/*i18n_Translation-de*. Before: root# apt-config dump | grep Languages Acquire::Languages ""; Acquire::Languages:: "de_DE"; Acquire::Languages:: "de"; Acquire::Languages:: "en"; Acquire::Languages:: "none"; After: root# apt-config dump | grep Languages Acquire::Languages ""; Acquire::Languages:: "en"; Acquire::Languages:: "none"; If there a multiple users with different $LANGUAGE settings the recommended setting should be (here: with order 1. environment 2. English 3. None): Acquire::Languages { "environment"; "en"; "none"; }; AFAICS this is the default setting (see above output of "Before:" section). [1] http://users.ox.ac.uk/~bioc1289/post/2013/01/right-way-to-not-download-apt-translation.html -dileks // 26-Feb-2020
Re: Package management tool
Hi, thanks for your comments. I have in the mean time decided that plasma discover is probably not the correct tool to maintain a Debian system and will continue to recommend using the command line tools or synaptic if a clickable frontend is absolutely desired by the local user even if KDE is being used. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Re: Package management tool
Happy new 2024 Marc, attached is my mini-howto - it's from January 2023 so be careful if things still fit. Thanks. Best regards, -Sedat- On Wed, Dec 27, 2023 at 2:16 PM Sedat Dilek wrote: > > On Tue, Dec 26, 2023 at 11:27 PM Marc Haber > wrote: > > > > Hi, > > > > on my new notebook I am trying to do more administrative tasks in > > graphical tools to be able to answer beginners' questions in the unix > > user group. That also means package management, which I usually do with > > apt on the command line. > > > > KDE Discover seems to not quite the package management tool I am looking > > for. It only says that my Debian unstable offers like 2000 packages for > > installation (the notebook alone has 2400 packages installed), it says > > that the installation only has 240 packages installed. And it cannot > > find the firefox browser. > > > > (1) Am I holding KDE Discover wrong? > > Hi Marc, > > there is some work to be done to get KDE/discover run properly and > update all the software catalogues while recognizing your > sources.list. > > This resulted in more MB to be downloaded for all my > repository-information - when using/checked with apt. > > But I never installed software via KDE/discover - just displayed what > software is available. > > Maybe, I can share my mini-howto when I am in front of my Debian system. > > IIRC apt-config-xxx and packagekit needs to be adapted. > > When I was using mobile network connection I disabled some settings in > apt-config-xxx to reduce the amount of (repository) data which is > required by KDE/discover to build the software-catalogues. > > > (2) If KDE Discover is not what I am looking for, what is the > > recommended way to do package management, install, deinstall, > > configure, purge Debian packages from the Debian archive > > on a KDE system? > > > > /me relies on good old apt for software-upgrades. > > BR, > -Sedat- [ BACKGROUND ] Here on my system I use plasma-discover with PackageKit backend. DEP-11 meta-informations for the packages are managed via appstream. My system default localisation and KDE regional settings are German/Germany. On my Debian/unstable AMD64 system two APT mirrors are set up. I prefer to use apt-get for upgrades and `git diff` to check file changes. [ PROBLEMS ] This document descibes to solve issues with plasma-discover: 1. Internet connection issues fetching updates 2. No software catalog informations displayed for installed and available packages [ LINKS ] https://forum.kde.org/viewtopic.php?f=309&t=161739#p430783 [ APPSTREAM + PACKAGEKIT - (RE-)INSTALL ] root# apt-get update root# apt-cache search appstream | grep qt root# apt-cache search packagekit | grep qt root# apt-get install --reinstall appstream libappstreamqt2 packagekit libpackagekitqt5-1 plasma-discover -s root# apt-get install --reinstall appstream libappstreamqt2 packagekit libpackagekitqt5-1 plasma-discover -y NOTE: Relevant KDE/QT packages: appstream + libappstreamqt2 & packagekit + libpackagekitqt5-1 (of course plasma-discover) [ PACKAGEKIT - PROXY - RELICTS ] root# ll /var/lib/PackageKit/transactions.db -rw-r--r-- 1 root root 244K 14. Jan 01:12 /var/lib/PackageKit/transactions.db ERROR: No Internet connection - plasma-discover not able to fetch updates CHECK: Any relicts of proxy settings in transactions.db database? NOTE: For some time I used a proxy for my mobile Internet connection - currently I do not. [ DATABASE - PERMISSIONS (user) ] root# cp -av /var/lib/PackageKit/transactions.db /var/lib/PackageKit/transactions.db.orig root# cp -av /var/lib/PackageKit/transactions.db /tmp root# chown dileks: /tmp/transactions.db root# chmod go+w /tmp/transactions.db user$ ll /tmp/transactions.db -rw-rw-rw- 1 dileks dileks 244K 14. Jan 01:04 /tmp/transactions.db NOTE: Prepare the database storing proxy informations for changes as user [ PACKAGEKIT - DATABASE - SQLITEBROWSER ] root# apt-get update root# apt-get install sqlitebrowser user$ sqlitebrowser /tmp/transactions.db FIX: Search database > Table: proxy > Delete all lines with entries including "proxy" settings Save changes (database) NOTE: I deleted all lines in proxy table - for a proper start of plasma-discover I added one new line with empty entries [ DATABASE - PERMISSIONS (root) ] root# cp -av /tmp/transactions.db /var/lib/PackageKit/ root# chown root: /var/lib/PackageKit/transactions.db root# chmod go-w /var/lib/PackageKit/transactions.db [ PACKAGEKIT - RESTART SERVICE ] root# systemctl restart packagekit.service [ PLASMA-DISCOVER - UPDATES ] user$ plasma-discover CHECK: Up-to-date > Fetching updates [ APPSTREAM - DEP-11 (metadata) ] root# cp -av /etc/apt/apt.conf.d/50appstream /etc/apt/apt.conf.d/50appstream.dpkg-dist EDIT: /etc/apt/apt.conf.d/50appstream (see changes below) root# git diff /etc/apt/apt.conf.d/50appstream.dpkg-dist /etc/apt/apt.conf.d/50appstream diff --git a/etc/apt/apt.conf.d/50appstream.dpkg-dist b/etc/apt/apt.conf.d/50appstrea
Re: Package management tool
On 2023-12-27 7:32 a.m., Luc Castermans wrote: hi mini howto would be nice. I use "apt" too, never was aware e.g. Firefox is not seen be Discover although enabled in sources.list Luc Sedat Dilek schreef op 27 december 2023 13:16:50 UTC: On Tue, Dec 26, 2023 at 11:27 PM Marc Haber wrote: Hi, on my new notebook I am trying to do more administrative tasks in graphical tools to be able to answer beginners' questions in the unix user group. That also means package management, which I usually do with apt on the command line. KDE Discover seems to not quite the package management tool I am looking for. It only says that my Debian unstable offers like 2000 packages for installation (the notebook alone has 2400 packages installed), it says that the installation only has 240 packages installed. And it cannot find the firefox browser. (1) Am I holding KDE Discover wrong? Hi Marc, there is some work to be done to get KDE/discover run properly and update all the software catalogues while recognizing your sources.list. This resulted in more MB to be downloaded for all my repository-information - when using/checked with apt. But I never installed software via KDE/discover - just displayed what software is available. Maybe, I can share my mini-howto when I am in front of my Debian system. IIRC apt-config-xxx and packagekit needs to be adapted. When I was using mobile network connection I disabled some settings in apt-config-xxx to reduce the amount of (repository) data which is required by KDE/discover to build the software-catalogues. (2) If KDE Discover is not what I am looking for, what is the recommended way to do package management, install, deinstall, configure, purge Debian packages from the Debian archive on a KDE system? /me relies on good old apt for software-upgrades. BR, -Sedat- I use too use apt, but there is Apper. It is not as "shiny and bright" as Discover but does provide a KDE GUI to package management and seems to include all packages in sources.list. It's very basic - it does not seem provide for purging or autoremove for example.
Re: Package management tool
hi mini howto would be nice. I use "apt" too, never was aware e.g. Firefox is not seen be Discover although enabled in sources.list Luc Sedat Dilek schreef op 27 december 2023 13:16:50 UTC: >On Tue, Dec 26, 2023 at 11:27 PM Marc Haber wrote: >> >> Hi, >> >> on my new notebook I am trying to do more administrative tasks in >> graphical tools to be able to answer beginners' questions in the unix >> user group. That also means package management, which I usually do with >> apt on the command line. >> >> KDE Discover seems to not quite the package management tool I am looking >> for. It only says that my Debian unstable offers like 2000 packages for >> installation (the notebook alone has 2400 packages installed), it says >> that the installation only has 240 packages installed. And it cannot >> find the firefox browser. >> >> (1) Am I holding KDE Discover wrong? > >Hi Marc, > >there is some work to be done to get KDE/discover run properly and >update all the software catalogues while recognizing your >sources.list. > >This resulted in more MB to be downloaded for all my >repository-information - when using/checked with apt. > >But I never installed software via KDE/discover - just displayed what >software is available. > >Maybe, I can share my mini-howto when I am in front of my Debian system. > >IIRC apt-config-xxx and packagekit needs to be adapted. > >When I was using mobile network connection I disabled some settings in >apt-config-xxx to reduce the amount of (repository) data which is >required by KDE/discover to build the software-catalogues. > >> (2) If KDE Discover is not what I am looking for, what is the >> recommended way to do package management, install, deinstall, >> configure, purge Debian packages from the Debian archive >> on a KDE system? >> > >/me relies on good old apt for software-upgrades. > >BR, >-Sedat- >
Re: Package management tool
On Tue, Dec 26, 2023 at 11:27 PM Marc Haber wrote: > > Hi, > > on my new notebook I am trying to do more administrative tasks in > graphical tools to be able to answer beginners' questions in the unix > user group. That also means package management, which I usually do with > apt on the command line. > > KDE Discover seems to not quite the package management tool I am looking > for. It only says that my Debian unstable offers like 2000 packages for > installation (the notebook alone has 2400 packages installed), it says > that the installation only has 240 packages installed. And it cannot > find the firefox browser. > > (1) Am I holding KDE Discover wrong? Hi Marc, there is some work to be done to get KDE/discover run properly and update all the software catalogues while recognizing your sources.list. This resulted in more MB to be downloaded for all my repository-information - when using/checked with apt. But I never installed software via KDE/discover - just displayed what software is available. Maybe, I can share my mini-howto when I am in front of my Debian system. IIRC apt-config-xxx and packagekit needs to be adapted. When I was using mobile network connection I disabled some settings in apt-config-xxx to reduce the amount of (repository) data which is required by KDE/discover to build the software-catalogues. > (2) If KDE Discover is not what I am looking for, what is the > recommended way to do package management, install, deinstall, > configure, purge Debian packages from the Debian archive > on a KDE system? > /me relies on good old apt for software-upgrades. BR, -Sedat-
Re: Package management tool
I love KDE, but I am not aware of a full-fledged KDE-based package management tool. I often use KDE Discover to install updates, mostly because I want to be aware of any improvements to Discover. But I drop back to using Synaptic, which is built on GTK, or apt on the command-line, when I need to do anything more complex. (In the settings I check “Show package properties in the main window” and “Clicking on the status icon marks the most likely action”.) Seeing as how managing packages is one of the core activities of using a system, not having a really good program in KDE for doing so seems like an odd oversight. That being said, so far I haven’t been bothered by it enough to volunteer to write a full-fledged KDE-based package manager, so, until I do, I don’t have much right to complain about it. On Tuesday, December 26, 2023 3:27:05 PM MST Marc Haber wrote: > Hi, > > on my new notebook I am trying to do more administrative tasks in > graphical tools to be able to answer beginners' questions in the unix > user group. That also means package management, which I usually do with > apt on the command line. > > KDE Discover seems to not quite the package management tool I am looking > for. It only says that my Debian unstable offers like 2000 packages for > installation (the notebook alone has 2400 packages installed), it says > that the installation only has 240 packages installed. And it cannot > find the firefox browser. > > (1) Am I holding KDE Discover wrong? > (2) If KDE Discover is not what I am looking for, what is the > recommended way to do package management, install, deinstall, > configure, purge Debian packages from the Debian archive > on a KDE system? > > > Greetings > Marc -- Soren Stoutner so...@stoutner.com signature.asc Description: This is a digitally signed message part.