[solved]Remove hedgewars

Questions about applications and software
Forum rules
Before you post please read this

[solved]Remove hedgewars

Postby godsotherhand on Thu Jul 28, 2011 2:28 pm

I installed hedgewars using a script.
The game doesnt show up in my mintmenu, doesnt show in synaptic and my software manager says it's not installed.
I start it by opening a terminal and typing "hedgewars".
The problem is that now the game is back in the repos(i had to install it this way cus it was gone from repo) and i would like to install that version, cus it works better (this1 has some bugs).
The problem is i dont know how to get rind of this version.
Installing the version in the repos does nothing..the old version starts up.
any1 got some ideas?
sudo apt-get remove hedgewars
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package hedgewars is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
N: Ignoring file 'opera.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

also, this is the script:
http://www.hedgewars.org/node/2339
Last edited by godsotherhand on Fri Jul 29, 2011 4:25 pm, edited 1 time in total.
godsotherhand
Level 4
Level 4
 
Posts: 271
Joined: Tue Mar 22, 2011 12:43 pm

Linux Mint is funded by ads and donations.
 

Re: Remove hedgewars

Postby xenopeek on Thu Jul 28, 2011 2:39 pm

The script first checks a list of packages it needs, and if it finds any missing it installs those. These are installed from the normal repository, and won't hinder you (they will get upgraded if needed, or removed if conflicting with another package). No worries about those.

The installation script is sadly very poor in the last part. They should have used "sudo checkinstall" instead of "sudo make install", as the first would have created a .DEB package, which indeed you would have been able to remove cleanly through Synaptic and such. If you ever install from source again, make sure to use "sudo checkinstall" instead of "sudo make install".

You may try to go to the hedgewars directory, and run:
Code: Select all
sudo make uninstall

Or perhaps:
Code: Select all
sudo make deinstall

If neither work, you could try to do the "sudo make install" again and keep a track of all the files it installed--and remove those manually.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15054
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Remove hedgewars

Postby godsotherhand on Thu Jul 28, 2011 3:14 pm

Hope this is the folder you were talking about..
bugsbunny@bugsbunny /usr/local/share/hedgewars $ sudo make uninstall
make: *** No rule to make target `uninstall'. Stop.
bugsbunny@bugsbunny /usr/local/share/hedgewars $ sudo make deinstall
make: *** No rule to make target `deinstall'. Stop.


should i just delete the folder?
godsotherhand
Level 4
Level 4
 
Posts: 271
Joined: Tue Mar 22, 2011 12:43 pm

Re: Remove hedgewars

Postby xenopeek on Thu Jul 28, 2011 3:59 pm

The /usr/local/share/hedgewars folder is where it was installed by the "sude make install" command. Running the uninstall command from there won't work.

From what folder did you run the script? The following line in the script downloads *at that location* the sources from hedgewars and puts it in a subfolder called hedgewars. You should run the commands from *that* folder.
Code: Select all
hg clone https://hedgewars.googlecode.com/hg/ hedgewars

If you don't know, run the following command in the terminal to find all locations with files or folders called hedgewars:
Code: Select all
locate hedgewars

There should be a hedgewars folder in your home folder probably, that is the most likely location for you to have run the script. If you can't find it, you can download the sources again and run the uninstall from there. Open the Terminal and do the following:
Code: Select all
cd ~
hg clone https://hedgewars.googlecode.com/hg/ hedgewars
cd hedgewars
sudo make uninstall

And you can replace the "sudo make uninstall" with "sudo make deinstall". If this still fails, run the "sudo make install", see where it all installes files (will be more than /usr/local/share/hedgewars) and delete these.

Finally, cleanup with:
Code: Select all
rm -fr ~/hedgewars
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15054
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Remove hedgewars

Postby godsotherhand on Fri Jul 29, 2011 4:23 pm

the code u recomended didnt work :(
Since i was gonna reinstall the whole thing (and i am on a slow 3g modem and i deleted the source files) i tryed deleting everything related to hedgewars, and then installing what i had in the repos, and it worked :P Now it starts with the version in the repos ( I dont think there should be any problems, as its basicly the same game with different data files :P

Ty for your help :D
godsotherhand
Level 4
Level 4
 
Posts: 271
Joined: Tue Mar 22, 2011 12:43 pm


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 3 guests