Author Topic: Deleting previous builds  (Read 4064 times)

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Deleting previous builds
« on: July 20, 2018, 06:19:04 am »
Hi,

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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Deleting previous builds
« Reply #1 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....

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Re: Deleting previous builds
« Reply #2 on: July 20, 2018, 01:31:49 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 :

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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Deleting previous builds
« Reply #3 on: July 20, 2018, 07:39:27 pm »
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!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Deleting previous builds
« Reply #4 on: July 20, 2018, 09:34:21 pm »
Quote
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.
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
« Last Edit: July 20, 2018, 09:36:49 pm by BlueHazzard »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Deleting previous builds
« Reply #5 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.
(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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Deleting previous builds
« Reply #6 on: July 21, 2018, 07:30:11 am »
Quote
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.
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:
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.