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.

I currently have both the gcc-4.6 Install gcc-4.6 and gcc-4.7 Install gcc-4.7 packages installed in Quantal. I do a lot of software development but haven't had a need for any features that are specific to GCC 4.7. Therefore, in order to conserve space, I thought it would be a good idea to remove GCC 4.7. Unfortunately:

nathan@nathan-ubuntu:~$ sudo apt-get autoremove gcc-4.7
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  build-essential dkms g++ g++-4.7 gcc gcc-4.7 libstdc++6-4.7-dev nvidia-current-updates
0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded.
After this operation, 250 MB disk space will be freed.
Do you want to continue [Y/n]?

Here's where I become a little nervous. Some of the packages being removed (like build-essential) are just meta-packages and won't cause any problems. However, some of them I'm not so sure about. For example, nvidia-current-updates isn't a meta-package. In fact, it's a 66 MB package. If it helps, I am using the Nvidia binary driver (Noveau doesn't work on my hardware).

Is it safe to continue? Will I lose anything important?


Edit: here is the output of apt-cache rdepends gcc-4.7:

gcc-4.7
Reverse Depends:
  gcc-4.7:i386
  llvm-gcc-4.7
  gccgo-4.7
  gcc-4.7-locales
  fixincludes
 |dragonegg-4.7
  gobjc-4.7
  gfortran-4.7
  gcj-4.7-jdk
  gcc-4.7-plugin-dev
  gcc-4.7-multilib
  gcc
  g++-4.7
  g++
share|improve this question
    
What is the output of apt-cache rdepends gcc-4.7? In my system (12.04.2) all nVidia drivers depends on gcc-4.6, so if you remove it(4.7) nVidia driver should go as well. Either way you should be able to remove g++-4.7. BTW: you can use sudo apt-get autoremove gcc-4.7 --dry-run to simulate what will happen. –  Salem Apr 2 '13 at 22:24
    
@Salem: I've added the output. –  Nathan Osman Apr 2 '13 at 22:35
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.