Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Just downloaded the codeblocks .bz2, extracted it and have a bunch of files which I dont know what to do with.

A friend once showed me how to install it using the command line, but I cant remember how to do it. I think I used a package manager or something from the command line? They are all .deb files.

The solution is NOT to open them all using software center. Installing this way destroys the OS.

Anyone have any ideas? Thanks!

share|improve this question
    
You said "Installing this way destroys the OS". Any reason for that? –  Max Feb 10 '13 at 13:33
    
Yes, as I remember, unless you know the specific order in which to install them, then all hell breaks loose, and it 'just wont work anymore'. (As in you can get to the desktop after restart, but you wont be able to install anything ever again until you remove all the packages you tried to install.) –  user3728501 Feb 10 '13 at 13:36
    
Thanks! Btw, I'm trying to install CB on Ubuntu 12.10 right now. I did it from Software Center, and got 10.05. What's the best way to install 12.11? –  Max Feb 10 '13 at 13:41
2  
Yeah, this is exactly the problem I had. Google for code::blocks, go to their page and download the binary release. (You want the stable one, I would assume.) You should extract the downloaded archive, and find you have a bunch of .deb files. Launch a terminal, cd to this directory, and type sudo dpkg -i *.deb and this will install everything without messing up the os. –  user3728501 Feb 10 '13 at 13:54

1 Answer 1

up vote 3 down vote accepted

The solution is:

sudo dpkg -i *.deb

Which will automate the process.

share|improve this answer
    
On Ubuntu 13.10 I downloaded Code::Blocks 13.12 (Debian Stable x86_64), extracted the bzip and tried using this command. Failed to install and left synaptic with a handful of broken packages that had to be cleared out. No silver bullet here, unfortunately. –  Matt H. Apr 12 at 16:18
    
@MattH. That's a different version, I'm guessing some changes were made which broke this method. Could you ask a question and tag me in a comment so I can find out the solution to doing this for version 13.12? –  user3728501 Apr 14 at 13:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.