News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Deleting previous builds

Started by ordak, July 20, 2018, 06:19:04 AM

Previous topic - Next topic

ordak

Hi,

I have downloaded and built several Code::Blocks on Ubuntu. Can I move them to trash ?
Code::Blocks SVN
OS : Ubuntu LTS

BlueHazzard

depends how you build them. Did you do a "make install"? If not you can simply delete it....

ordak

Quote from: BlueHazzard on July 20, 2018, 12:31:34 PM
depends how you build them. Did you do a "make install"? If not you can simply delete it....

As the last command I used :

sudo make install
Code::Blocks SVN
OS : Ubuntu LTS

oBFusCATed

If you've not used a separate prefix for all of them, but you've used the default of /usr/local, your doomed. They cannot be removed.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BlueHazzard

#4
QuoteIf you've not used a separate prefix for all of them, but you've used the default of /usr/local, your doomed. They cannot be removed.
Is there no uninstall rule? That's a shame...

[EDIT:] this might help https://stackoverflow.com/questions/1506462/what-files-did-make-install-copy-and-where

oBFusCATed

The uninstall rule uses the current build folder config to do the uninstall.
So if you're at version x, but you've installed version y. You might be out-of-luck if you want reliable uninstall.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

Quote from: BlueHazzard on July 20, 2018, 09:34:21 PM
QuoteIf you've not used a separate prefix for all of them, but you've used the default of /usr/local, your doomed. They cannot be removed.
Is there no uninstall rule? That's a shame...

[EDIT:] this might help https://stackoverflow.com/questions/1506462/what-files-did-make-install-copy-and-where
It's there, of course, but:
Quote from: oBFusCATed on July 20, 2018, 09:39:40 PM
The uninstall rule uses the current build folder config to do the uninstall.
So if you're at version x, but you've installed version y. You might be out-of-luck if you want reliable uninstall.

If you make an change to the build-system you are probably lost.
You have to run uninstall before making changes or use the --prefix parameter when running configure to install in a seperate (if possible user-) folder to easily remove all files and not to clutter system folder.
No sudo needed and recommended not to use it, or you clutter your system folders with test-builds.
There have been several posts about the same problem in our forum.