question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Request] Need to provide a way to uninstall idapkg

See original GitHub issue

Don’t get me wrong ! I’ve been playing this plugin for a while and it really is an amazing project 😃 👍 However when I was testing the plugin, I encountered some problem and have to find a way to re-install idapkg completely.

To be brief, I have two version of IDA in my computer (Windows 10), and when I was testing the plugin, it kind of screwed up the variable in config.json ( I think it’s idausr_native_bases ), making me unable to open ida ( it kept crashing ). After I installed idapkg, I first open version A’s ida.exe, then open version B’s ida64.exe ( both of them worked perfectly ). And then I found I was unable to open version A’s ida64.exe and version B’s ida.exe ( both of them crashed ). It took me quite a while to find the root cause and have to delete config.json & re-install idapkg to fix the issue.

This make me think that the project should provide a way to uninstall the plugin (and document it in the manual), in case the user have decided not to use the plugin anymore. As far as I understand it has something to do with idapythonrc.py, and it’s located in C:\Users\<username>\AppData\Roaming\Hex-Rays\IDA Pro\idapythonrc.py (Windows) , which is not an easy place for user to reach/discover. It would be nice if we can use a single command in IDA’s python shell to remove the plugin completely.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Jinmocommented, May 30, 2019

Done except pkg << "package" since it’s impossible in python to override methods in module object without hacking sys.modules… 😇

  • pkg.install now accepts repo=[‘repos’] too
  • pkg.remote(spec, repo=None) is added
  • pkg.upgrade(spec, repo=None) is added

… in de002e3 ! 😃

1reaction
Jinmocommented, May 30, 2019

Currently this can be done with pkg.install(..., upgrade=True), but the shortcut seems good (argument order can be sometimes confusing).

In addition, I’m updating some commands e.g. making repo= argument optional, add remote(), pkg << "package". I’ll close the issue when the refactoring is done!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to uninstall a .deb package?
Go to System → Administration → Synaptic Package Manager · Click the Status button and select "Installed (local or obsolete)" · Right click...
Read more >
Uninstall Ubuntu and Debian Packages With apt-get and ...
This article provides a helpful guide on uninstalling Ubuntu and Debian packages with apt-get and dpkg. The Debian-based Linux distributions offer a variety ......
Read more >
How to uninstall a .deb installed with dpkg?
First of all you should check if this package is correctly installed in your system and being listed by dpkg tool: dpkg -l...
Read more >
How to uninstall packages installed with dpkg
Try: sudo apt-get purge '^steam.*'.
Read more >
How to Uninstall Deb Packages in Ubuntu Linux
While there are several ifs and buts around it, the simplest and most reliable way of deleting a deb file is by using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found