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.

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
add comment

1 Answer 1

up vote 9 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
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.