You are not logged in.

#1 2017-09-13 12:36:58

loneranger007
Member
Registered: 2017-08-06
Posts: 32

[Solved] Remove package installed through setup.py

Hi guys,
Need help removing a package installed using make install.
I had installed GNS3 using make install now i dont want it and cant find its installed location.
Any suggestions?
Thanks.

Last edited by loneranger007 (2017-09-13 13:41:00)


Where there is a shell, there is a way.

Offline

#2 2017-09-13 12:48:11

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [Solved] Remove package installed through setup.py

Hope the Makefile has a make uninstall recipe. Failing that, read the install recipe and undo it manually.

Cross your fingers and hope no packaged files got overwritten by it. You can check afterwards which packages are damaged by using pacman's --check flag. (see 'man pacman')


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2017-09-13 12:49:58

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

WorMzy wrote:

Hope the Makefile has a make uninstall recipe. Failing that, read the install recipe and undo it manually.

Cross your fingers and hope no packaged files got overwritten by it. You can check afterwards which packages are damaged by using pacman's --check flag. (see 'man pacman')

no it does not have an uninstall recipe.
How to read the install recipe?


Where there is a shell, there is a way.

Offline

#4 2017-09-13 12:50:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Remove package installed through setup.py

What is GNS3?  Where did you get the source/makefile?  My first google results lead to a python package which does not use a makefile (so no "make install").  Is there an uninstall directive in the Makefile?

EDIT: initially cross posted with the above.

----

How do you read it?  With your eyes... if you want help understanding it, you need to share it or provide a link to where you got it.

Last edited by Trilby (2017-09-13 12:51:47)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2017-09-13 12:53:49

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

Trilby wrote:

What is GNS3?  Where did you get the source/makefile?  My first google results lead to a python package which does not use a makefile (so no "make install").  Is there an uninstall directive in the Makefile?

EDIT: initially cross posted with the above.

----

How do you read it?  With your eyes... if you want help understanding it, you need to share it or provide a link to where you got it.

https://github.com/GNS3


Where there is a shell, there is a way.

Offline

#6 2017-09-13 12:55:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Remove package installed through setup.py

There are several gns3 related repos there, which one did you use?  I'm not going to skim through all of them.  As I said, I already checked one, and it was clearly the wrong one.

You might want to make it less difficult to help you.

What steps did you take to install this unspecified software?  How might one replicate what you did?  What makefile was used?

Last edited by Trilby (2017-09-13 12:56:17)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2017-09-13 12:57:31

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Remove package installed through setup.py

There are 17 different repositories in that Github account - did you want us to investigate all of them for you?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2017-09-13 12:58:07

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

Trilby wrote:

There are several gns3 related repos there, which one did you use?  I'm not going to skim through all of them.  As I said, I already checked one, and it was clearly the wrong one.

You might want to make it less difficult to help you.

What steps did you take to install this unspecified software?  How might one replicate what you did?  What makefile was used?

it is the gns3-gui.
https://github.com/GNS3/gns3-gui


Where there is a shell, there is a way.

Offline

#9 2017-09-13 13:00:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Remove package installed through setup.py

Ok, how about the other questions - jesus, this is like pulling teeth.

There is no Makefile in that repository, so `make install` would not do anything.  It is a python package which could use python setup.py.  So again what steps did you take to install this, and how might one replicate what you did.

Obligatory at this point: read it.

Last edited by Trilby (2017-09-13 13:02:12)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2017-09-13 13:02:33

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

Im sorry guys.Im kinda new to this things.

mkdir -p /tmp/gns3
cd /tmp/gns3 
git clone https://github.com/GNS3/gns3-gui.git
cd gns3-gui
sudo python setup.py install 

This is what i did.


Where there is a shell, there is a way.

Offline

#11 2017-09-13 13:05:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Remove package installed through setup.py

Oh for fuck sake.  You forgot the last step you did: you posted on a forum completely misrepresenting the situation asking for help while expecting your would-be helpers to be 100% clairevoyant to know what you actually did despite you giving minimal information none of which was true.

The solution via google:

https://stackoverflow.com/questions/155 … ll#1550235

Note that being new absolutely excuses not understanding how things work.  We can help you learn.  Being new doesn't excuse lying, avoiding answering questions, and wasting people's time.

Last edited by Trilby (2017-09-13 13:08:46)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2017-09-13 13:11:34

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [Solved] Remove package installed through setup.py

that StackOverflow reply wrote:
cat files.txt | xargs rm -rf

The following is probably obvious, but in case it isn't to OP: take a good look at that `files.txt` before running that command, to be sure you won't nuke directories belonging to other parts of the system.


pkgshackscfgblag

Offline

#13 2017-09-13 13:15:04

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

Trilby wrote:

Oh for fuck sake.  You forgot the last step you did: you posted on a forum completely misrepresenting the situation asking for help while expecting your would-be helpers to be 100% clairevoyant to know what you actually did despite you giving minimal information none of which was true.

The solution via google:

https://stackoverflow.com/questions/155 … ll#1550235

Note that being new absolutely excuses not understanding how things work.  We can help you learn.  Being new doesn't excuse lying, avoiding answering questions, and wasting people's time.


Can you please tell me where you though I was lying.
Ultimately it is my need to get this thing fixed, So why should i purposefully waste your time and mine.

and this /tmp/gns3 folder is not present where i created it.


Where there is a shell, there is a way.

Offline

#14 2017-09-13 13:15:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Remove package installed through setup.py

There may be better answers in that SO thread too.  That really was the very first google result and it demonstrates that solutions are readily available.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#15 2017-09-13 13:16:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Remove package installed through setup.py

loneranger007 wrote:

I had installed GNS3 using make install

You didn't use make install.

The *only* piece of information you have us was a complete misrepresentation.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2017-09-13 13:20:03

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

Trilby wrote:
loneranger007 wrote:

I had installed GNS3 using make install

You didn't use make install.

The *only* piece of information you have us was a complete misrepresentation.

Ok..I'm Sorry for that.
I had installed another package with this for which i used make install, got confused.Sorry!


Where there is a shell, there is a way.

Offline

#17 2017-09-13 13:21:24

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: [Solved] Remove package installed through setup.py

loneranger007 wrote:

and this /tmp/gns3 folder is not present where i created it.

That's because /tmp is usually mounted as a tmpfs. But you did do this to get the GNS3 files:

mkdir -p /tmp/gns3
cd /tmp/gns3 
git clone https://github.com/GNS3/gns3-gui.git
cd gns3-gui

So simply repeat those steps.


pkgshackscfgblag

Offline

#18 2017-09-13 13:34:07

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

Guys got it fixed.

The page Trilby had suggested had an option to uninstall it via pip.

pip uninstall gns3-gui 

This got it fixed for me. Not sure if it has removed all the files though.


Where there is a shell, there is a way.

Offline

#19 2017-09-13 13:50:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Remove package installed through setup.py

I'm glad it worked out in the end (and thanks for the title edit, that may help others now).  For future reference please take the time to provide details in your initial posts - that would have allowed us to get to a solution *much* faster and with much less frustration.

A general guideline for almost any troubleshooting is to provide a list of steps by which others could replicate what you have done.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#20 2017-09-13 14:02:51

loneranger007
Member
Registered: 2017-08-06
Posts: 32

Re: [Solved] Remove package installed through setup.py

Trilby wrote:

I'm glad it worked out in the end (and thanks for the title edit, that may help others now).  For future reference please take the time to provide details in your initial posts - that would have allowed us to get to a solution *much* faster and with much less frustration.

A general guideline for almost any troubleshooting is to provide a list of steps by which others could replicate what you have done.

Yeah..I understood my mistake.
I reacted before really understanding the problem.
Sorry for the trouble and thanks for the help.


Where there is a shell, there is a way.

Offline

Board footer

Powered by FluxBB