We located an application recommended by one of customers for sharing certain data. It was available for installation using a few different methods. Using yum was also recommended for the installation. The install instructions began with what appeared to be a fairly typical command as indicated below (with the URL slightly altered).
sudo rpm --import https://rpm.xxxxx.com/rpmrepo.key
To our junior employee assigned to perform the install on a test system, it seemed like a good idea to do some checking on the rpm option --import indicated in those instructions. They did not find the --import in any of the 14 pages of the CentOS 7 man page for rpm.
Some Google searches indicated that the --import option does exist. The repo setup and application installation all went well and took only about three minutes. The app is also working as intended.
Is there some good reason for --import being left out of the manual page?
On 5/5/20 6:00 PM, Chris Olson via CentOS wrote:
We located an application recommended by one of customers for sharing certain data. It was available for installation using a few different methods. Using yum was also recommended for the installation. The install instructions began with what appeared to be a fairly typical command as indicated below (with the URL slightly altered).
sudo rpm --import https://rpm.xxxxx.com/rpmrepo.key
To our junior employee assigned to perform the install on a test system, it seemed like a good idea to do some checking on the rpm option --import indicated in those instructions. They did not find the --import in any of the 14 pages of the CentOS 7 man page for rpm.
Some Google searches indicated that the --import option does exist. The repo setup and application installation all went well and took only about three minutes. The app is also working as intended.
Is there some good reason for --import being left out of the manual page?
That's a really interesting question, but probably better directed at rpm directly:
http://lists.rpm.org/mailman/listinfo/rpm-list or https://github.com/rpm-software-management/rpm/issues
On Wed, 6 May 2020 00:00:48 +0000 (UTC) Chris Olson via CentOS centos@centos.org wrote:
We located an application recommended by one of customers for sharing certain data. It was available for installation using a few different methods. Using yum was also recommended for the installation. The install instructions began with what appeared to be a fairly typical command as indicated below (with the URL slightly altered).
sudo rpm --import https://rpm.xxxxx.com/rpmrepo.key
To our junior employee assigned to perform the install on a test system, it seemed like a good idea to do some checking on the rpm option --import indicated in those instructions. They did not find the --import in any of the 14 pages of the CentOS 7 man page for rpm.
Well I wouldn't called obvious, but the rpm man page has a "see also" for rpmkeys(8) and this man page documents the rpm key related options.
I don't know how it came to be that rpm --import just quietly does rpmkeys --import without documenting it though...
/Peter
On Wed, May 06, 2020 at 09:49:51AM +0200, Peter Kjellström wrote:
Well I wouldn't called obvious, but the rpm man page has a "see also" for rpmkeys(8) and this man page documents the rpm key related options.
I don't know how it came to be that rpm --import just quietly does rpmkeys --import without documenting it though...
The source has it here:
https://github.com/rpm-software-management/rpm/blob/master/rpmpopt.in#L198
(this is how rpm knows to run rpmkeys for that switch)
It appears that it was introduced in 2010, and the functionality was removed from rpm in this commit:
https://github.com/rpm-software-management/rpm/commit/3cbda9c03f1feb872397f4...
and the man page was updated in this commit:
https://github.com/rpm-software-management/rpm/commit/c6d98322f1d30ca8028efb...
On 5/6/20 12:49 AM, Peter Kjellström wrote:
On Wed, 6 May 2020 00:00:48 +0000 (UTC) Chris Olson via CentOS centos@centos.org wrote:
We located an application recommended by one of customers for sharing certain data. It was available for installation using a few different methods. Using yum was also recommended for the installation. The install instructions began with what appeared to be a fairly typical command as indicated below (with the URL slightly altered).
sudo rpm --import https://rpm.xxxxx.com/rpmrepo.key
To our junior employee assigned to perform the install on a test system, it seemed like a good idea to do some checking on the rpm option --import indicated in those instructions. They did not find the --import in any of the 14 pages of the CentOS 7 man page for rpm.
Well I wouldn't called obvious, but the rpm man page has a "see also" for rpmkeys(8) and this man page documents the rpm key related options.
Thanks for this info. Definitely NOT something anyone would know about! :/
Regards,
Kay
I don't know how it came to be that rpm --import just quietly does rpmkeys --import without documenting it though...
/Peter _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos