I'm just learning about all this depency thing, how would i check what packages are needed, or probably needed, like u said maybe some were dependent on others?
http://packages.ubuntu.com/
and search for the package.
When you try to do apt-get remove, it will also tell you packages that would also be automatically uninstalled.
For example -
Code:
cyberfish@cyberfish-desktop:/local_data/wiki$ sudo apt-get remove gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
build-essential eclipse-cdt g++ gcc gccxml libboost-python1.35-dev
0 upgraded, 0 newly installed, 6 to remove and 16 not upgraded.
After this operation, 35.7MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
Even though I only asked for GCC to be removed, 5 other packages will also need to be removed since they depend on GCC.