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.

well, after i installed freecad on my ubuntu 12.04 with the help of this blog i started asking about compiling and building from source.

So, when we are trying to install a package some times the terminal or the software center says that some packages are missing. The sudo apt-get build-dep package_name is a general command that finds and installs dependencies right?

My main questions here are

  1. From where is it finding the missing packages, repository?
  2. Can we use this command for any application?Or only those that the packages are in our repositories?

Thanks!

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted
  1. Packages explicitly list what they depend on in a special file in the package itself (more information here). That's what the package manager uses to figure out the full set of dependencies. And yes, it downloads them from the repository.
  2. You can only use it for valid package names that are known to your package manager (since it needs to access the file that lists the dependencies), i.e. found in the repositories that you have enabled on your system.
share|improve this answer
add comment

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.