[Rpm-maint] [rpm-software-management/rpm] can't rpm erase, package with invalid hash lodged inside rpmdb (Issue #2460)

hgkamath notifications at github.com
Fri Mar 31 12:53:38 UTC 2023


In the ```man rpm```,  
The ```--nosignature``` is listed under sections ```§ INSTALL & UPGRADE OPTIONS``` and ```§ VERIFY OPTIONS```.  
The ```--querybynumber``` is listed under ```§ select-options/PACKAGE SELECTION OPTIONS```.  

It is a little non-obvious, but the composition works (suggested in links given below)
```
[root at sirius livna]# rpm -q --nosignature --querybynumber 17
livna-release-1-1.noarch
[root at sirius livna]# rpm -e --nosignature livna-release-1-1.noarch
[root at sirius livna]# 
```

It is nice to be able to do
```
rpm -e <package> --nosignature
```
The argument ```--nosignature``` is pased and recognized and seems to work.
Test on another non-problem package:
```
[root at sirius livna]# rpm -e mplayer --nosignaturex
rpm: --nosignaturex: unknown option
[root at sirius livna]# rpm -e mplayer --nosignature
[root at sirius livna]# 
```
So if it is the case that ```--nosignature``` can be used for ```rpm --erase``` then the man page needs to specify that in some section. 
a) Is it a general selection option that goes into ```§ select-options/PACKAGE SELECTION OPTIONS```
b) or should it be specified as a supported argument in ```§ ERASE OPTIONS```

### REFS:
- 20230217 Kamil Páral Insecure installed RPMs (like Google Chrome) prevent system updates in F38, can't be removed 
  https://bugzilla.redhat.com/show_bug.cgi?id=2170878 : 
- 20230230 Kamil Páral Third-party RPMs with an invalid signing key might cause errors during package operations  
  https://discussion.fedoraproject.org/t/third-party-rpms-with-an-invalid-signing-key-might-cause-errors-during-package-operations/80077
- 20230227 Kamil Páral Talk: Popular third-party RPMs fail to install/update/remove due to security policies verification 
  https://discussion.fedoraproject.org/t/talk-popular-third-party-rpms-fail-to-install-update-remove-due-to-security-policies-verification/70379/1
- 20230208 Kamil Páral Popular third-party RPMs fail to install/update/remove due to security policies verification
  https://discussion.fedoraproject.org/t/popular-third-party-rpms-fail-to-install-update-remove-due-to-security-policies-verification/70498
- 20230330 Rebuild to pull in cryptographic fixes for RPM 
  https://bugzilla.redhat.com/show_bug.cgi?id=2183038 
- 20230131 Kevin/Nirik error: rpmdbNextIterator: skipping in Fedora 38+
  https://www.scrye.com/wordpress/nirik/2023/01/31/error-rpmdbnextiterator-skipping-in-fedora-38/ 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2460#issuecomment-1491882103
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2460/1491882103 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230331/a2280764/attachment.html>


More information about the Rpm-maint mailing list