katello-ca-consumer-latest.noarch.rpm

Latest response

When trying to install katello-ca-consumer-latest.noarch.rpm to register my machine it errors out.

When I download the package and try to install it with yum localinstall and rpm -ivh

Yum produces the error nothing to do and rpm states this is not an rpm package.

Responses

Hi Arifjan,

How did you download it?

what does file katello-ca-consumer-latest.noarch.rpm tell you?

Regards,

Jan Gerrit

We replaced satellite servers in my environment.

This was our method that worked when we recently replaced our katello-ca-consumer rpm due to a third party certificate change.

To summarize the overkill actions below...

  • We remove the previous edition first
  • We (for our environment this works) conditionally check to "make sure" this is being ran on RHEL (we push this through ansible, even if the below doesn't smell like ansible).
  • If it is RHEL, after the rpm is removed, we install the new one
  • We do subscription-manager commands to take a clean action then re-register the system using activation keys. We do this based on an rpm check for server, and if it's server, it registers using a server activation key, if workstation, then a workstation activation key (workstation example hinted, not mentioned below)
  • Our activation key for server or workstation has the correct subscriptions and repositories accordingly.
### find the specific already-installed rpm
myrpm=$(rpm -qa | grep katello-ca-consumer)
### conditional action, remove it if it is rhel (for environments with centos, for example)
### probably overkill, but we like to be careful.  This function is called if/only if the conditional after the function calls this function.

### this is a function, it is called from the last line in this text block based on the condition check 
really_is_rhel() {
yum -y remove $myrpm
rpm -ivh http://ip_address_satellite_server/pub/katello-ca-consumer-latest.noarch.rpm
# subscription-manager config # optional
subscription-manager clean
# rhel7
### we have an activation key pre-established on our satellite server with correct subscriptions ascribed, and correct content  views established/assigned.
### slightlly overkill, makes sure yet again this is redhat, not some other varient
### you can drop the conditional prior to the double ampersand
rpm -q redhat-release-server  && subscription-manager register --org="your_correct_org_name" --activationkey="your_valid_activation_key_for_server" --force
### you could add lines for redhat-release-workstation and then use your workstation activation key here.
}

### this next thing makes sure it is not centos, if it is not centos, assumption is RHEL, and the function above is called.
rpm -q  centos-release || really_is_rhel && echo "this is centos, bailing now"

Let us know if this doesn't work, Satellite is supported, so you can submit a ticket - we may be busy here with production things.

Regards,
RJ