You are not logged in.
Scenario:
There are packages with different version number in the same local folder, like /mnt/repo/pkgs.
qt6-xxxx-6.3.2-xxxx-pkg.tar.zst
qt6-xxxx-6.4.0-xxxx-pkg.tar.zst
1. run repo-add to a brand new custom.db.tar.gz,
2. run pacman -Syu,
3. check pkg list using pacman -Sl | grep qt6
result shows that only higher version files are added to the custom.db repo.
Let's go on:
Then I want to remove all those qt6-xxxx-6.4.0-xxxx-pkg.tar.zst manually using :
repo-remove cusome.db.tar.gz qt6-xxxx-6.4.0-xxxx-pkg.tar.zst (just a sample for one file).
Because I want to add entry for lower version of packages in the repo db.
All qt6-xxxx-6.3.2-xxxx-pkg.tar.zst and qt6-xxxx-6.4.0-xxxx-pkg.tar.zst are located in the same folder.
But it gives me the message as below:
==> Searching for package 'qt6-3d-6.4.0-1-x86_64.pkg.tar.zst'...
==> ERROR: Package matching 'qt6-3d-6.4.0-1-x86_64.pkg.tar.zst' not found.
==> No packages modified, nothing to do.
Question:
How to remove entry of higher version in custom.db with repo-remove ?
Thanks.
Last edited by Linuxmodel (2022-10-20 02:36:09)
Offline
repo-remove takes the package name, not the file name. You would just remove qt6-3d. Or simply add the older version.
Online
OK. I will try.
Will it remove the local files at the same time when I remove the entry inside custom.db?
If I delete the new version files in folder first, then run the repo-remove, will it be OK?
Simply add the older version, it will prompt below :
==> WARNING: A newer version for 'qt6-imageformats' is already present in database
==> WARNING: A newer version for 'qt6-languageserver' is already present in database
==> WARNING: A newer version for 'qt6-lottie' is already present in database
==> WARNING: A newer version for 'qt6-multimedia' is already present in database
==> WARNING: A newer version for 'qt6-networkauth' is already present in database
==> WARNING: A newer version for 'qt6-positioning' is already present in database
==> WARNING: A newer version for 'qt6-quick3d' is already present in database
==> WARNING: A newer version for 'qt6-quicktimeline' is already present in database
==> WARNING: A newer version for 'qt6-remoteobjects' is already present in database
==> WARNING: A newer version for 'qt6-scxml' is already present in database
==> WARNING: A newer version for 'qt6-sensors' is already present in database
==> WARNING: A newer version for 'qt6-serialbus' is already present in database
==> WARNING: A newer version for 'qt6-serialport' is already present in database
==> WARNING: A newer version for 'qt6-shadertools' is already present in database
==> WARNING: A newer version for 'qt6-svg' is already present in database
==> WARNING: A newer version for 'qt6-tools' is already present in database
==> WARNING: A newer version for 'qt6-translations' is already present in database
==> WARNING: A newer version for 'qt6-virtualkeyboard' is already present in database
==> WARNING: A newer version for 'qt6-wayland' is already present in database
repo-remove takes the package name, not the file name. You would just remove qt6-3d. Or simply add the older version.
Offline
Yes. it works with the name only.
And it does not matter whether the package file is there or not.
Thanks.
repo-remove takes the package name, not the file name. You would just remove qt6-3d. Or simply add the older version.
Last edited by Linuxmodel (2022-10-20 02:57:18)
Offline
Is there an approach to remove multiple packages in the repo-remove run? not supporting regex now.
repo-remove takes the package name, not the file name. You would just remove qt6-3d. Or simply add the older version.
Offline