Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What was the difference between sudo apt-get -f install and sudo apt-get install -f commands?
I had seen these two commands large number of times,is there any differences in functionality of these two commands?

share|improve this question
No, it's the same ASAIK – PeppeDAlterio Nov 23 '13 at 11:10
up vote 10 down vote accepted

They are the same.

apt-get and install are obligatory. The -f is optional and can be placed anywhere after apt-get. Though the man page has them explained as apt-get -f install:

   apt-get [-asqdyfmubV] [-o=config_string] [-c=config_file]
           [-t=target_release] [-a=architecture] {update | upgrade |
           dselect-upgrade | dist-upgrade |
           install pkg [{=pkg_version_number | /target_release}]...  |
           remove pkg...  | purge pkg...  |
           source pkg [{=pkg_version_number | /target_release}]...  |
           build-dep pkg [{=pkg_version_number | /target_release}]...  |
           download pkg [{=pkg_version_number | /target_release}]...  |
           check | clean | autoclean | autoremove | {-v | --version} |
           {-h | --help}}
share|improve this answer

Your Answer


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.