You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by MyWorld <ti...@gmail.com> on 2023/04/05 13:45:03 UTC

Issues during Install/Remove Cassandra ver 4.0.x

Hi all,
We are facing one issue in installing cassandra-4.0.7.

### We started with* yum installation.* We setup repo "cassandra.repo" as
below:
[cassandra]
name=Apache Cassandra
baseurl=https://redhat.cassandra.apache.org/40x/noboolean/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://downloads.apache.org/cassandra/KEYS

On doing "yum list cassandra", *it shows ver 4.0.8 but not 4.0.7*.
Further using showduplicates "yum --showduplicates list cassandra", *still it
shows ver 4.0.8 but not 4.0.7*.

*How can we get earlier versions here ??*

###Next, we tried *using rpm,*
sudo curl -OL
https://redhat.cassandra.apache.org/40x/cassandra-4.0.7-1.noarch.rpm

On running "sudo rpm -ivh cassandra-4.0.7-1.noarch.rpm",
It gives below error,
error: Failed dependencies:         (jre-1.8.0 or jre-11) is needed by
cassandra-4.0.7-1.noarch         rpmlib(RichDependencies) <= 4.12.0-1 is
needed by cassandra-4.0.7-1.noarch

Then, i solve this by using "sudo rpm --nodeps -ivh
cassandra-4.0.7-1.noarch.rpm"
and version was installed successfully

*Is skipping dependencies with  --nodeps a right approach ??*

###Next, i tried to *uninstall the version* using
"yum remove cassandra"
It gives error: *Invalid version flag: or*

Refer complete trace below:
# yum remove cassandra
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package cassandra.noarch 0:4.0.7-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved
===================================================================================================================
 Package                     Arch                     Version
     Repository                   Size
===================================================================================================================
Removing:
 cassandra                   noarch                   4.0.7-1
     installed                    55 M

Transaction Summary
===================================================================================================================
Remove  1 Package

Installed size: 55 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction

Invalid version flag: or

*How to solve this issue ??*

Regards,
Ashish Gupta

Re: Issues during Install/Remove Cassandra ver 4.0.x

Posted by Bowen Song via user <us...@cassandra.apache.org>.
Since you have already downloaded the RPM file, you may install it with 
"yum install cassandra-4.0.7-1.noarch.rpm" command. This will install 
the package with all of its dependencies.

BTW, you can even run "yum install 
https://redhat.cassandra.apache.org/40x/cassandra-4.0.7-1.noarch.rpm" to 
download and install the package with just one command.


On 05/04/2023 14:45, MyWorld wrote:
> Hi all,
> We are facing one issue in installing cassandra-4.0.7.
>
> ### We started with*yum installation.* We setup repo "cassandra.repo" 
> as below:
> [cassandra]
> name=Apache Cassandra
> baseurl=https://redhat.cassandra.apache.org/40x/noboolean/
> gpgcheck=1
> repo_gpgcheck=1
> gpgkey=https://downloads.apache.org/cassandra/KEYS
>
> On doing "yum list cassandra", *it shows ver 4.0.8 but not 4.0.7*.
> Further using showduplicates "yum --showduplicates list cassandra", 
> *still it shows ver 4.0.8 but not 4.0.7*.
>
> *How can we get earlier versions here ??*
>
> ###Next, we tried *using rpm,*
> sudo curl -OL 
> https://redhat.cassandra.apache.org/40x/cassandra-4.0.7-1.noarch.rpm
>
> On running "sudo rpm -ivh cassandra-4.0.7-1.noarch.rpm",
> It gives below error,
> error: Failed dependencies:         (jre-1.8.0 or jre-11) is needed by 
> cassandra-4.0.7-1.noarch         rpmlib(RichDependencies) <= 4.12.0-1 
> is needed by cassandra-4.0.7-1.noarch
> Then, i solve this by using "sudo rpm --nodeps -ivh 
> cassandra-4.0.7-1.noarch.rpm"
> and version was installed successfully
>
> *Is skipping dependencies with  --nodeps a right approach ??*
>
> ###Next, i tried to *uninstall the version* using
> "yum remove cassandra"
> It gives error: *Invalid version flag: or*
>
> Refer complete trace below:
> # yum remove cassandra
> Loaded plugins: fastestmirror
> Resolving Dependencies
> --> Running transaction check
> ---> Package cassandra.noarch 0:4.0.7-1 will be erased
> --> Finished Dependency Resolution
>
> Dependencies Resolved
> ===================================================================================================================
>  Package                     Arch                     Version         
>            Repository                   Size
> ===================================================================================================================
> Removing:
>  cassandra                   noarch                   4.0.7-1         
>            installed                    55 M
>
> Transaction Summary
> ===================================================================================================================
> Remove  1 Package
>
> Installed size: 55 M
> Is this ok [y/N]: y
> Downloading packages:
> Running transaction check
> Running transaction test
> Transaction test succeeded
> Running transaction
>
> Invalid version flag: or
>
> *How to solve this issue ??*
>
> Regards,
> Ashish Gupta