I have added
echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
Now I want to remove it and install Cassandra in another way.How to delete it?
I have added
echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
Now I want to remove it and install Cassandra in another way.How to delete it?
Open
/etc/apt/sources.list.d/cassandra.sources.list
for editing in nano text editor and comment out the line that you want to disable by preceding it with a#
character at the beginning of the line.Change this line:
So that it looks like this:
Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.
Update the list of available software:
The easiest way is
sudo rm /etc/apt/sources.list.d/cassandra.sources.list
.. this will remove all entries that's in the casandra.sources.list file, but it should only be the one you added.