0

I installed ccp4-6.5 by unpacking the tar.bz2 files and installed it by running the BINARY.setup. Now I want to remove it.

The problem is, the package doesn't appear in dpkg --list and when ever I restart my ubuntu, I have to source them again. How can I uninstall any software and what should I do that I don't have to source them again and again.

JIri
  • 35

1 Answers1

3

EDIT: Understanding now you mean you need to use the "source" command (.) in bash, I thought you meant you needed to recompile from source.

Now that you have identified the package as CCP (which I don't know) please look at this wiki related to CCP, seems to be a known issue that you have to source it every time you want it. Put the source command in your .bashrc (or in your case .cshrc or .tcshrc) and it should work fine, this appears to be expected behavior for CCP.

From the linked wiki (in case the link ever breaks):

(t)csh add the following lines to your ~/.cshrc file:

source /where/I/put/ccp4/setup-scripts/ccp4.setup source /where/I/put/ccp4/setup-scripts/ccp4-others.setup

bash add these lines to your ~/.bashrc file:

. /where/I/put/ccp4/setup-scripts/ccp4.setup . /where/I/put/ccp4/setup-scripts/ccp4-others.setup

The next time you start a terminal CCP4 will be available.

To uninstall it, just go to the directory where it's installed and rm it:

cd to the location of the ccp4 directory (/usr/local? ~?)

being very careful and not as root(!):

rm -rf ccp4

If it's not installed with a package manager in the first place then dpkg is not going to be helpful, as you stated. You just need to delete the directory and remove any related commands from your .tcshrc/.cshrc file, the files that are called every time you start a new terminal

JimLohse
  • 313