Link to home
Start Free TrialLog in
Avatar of JeffBeall
JeffBeallFlag for United States of America

asked on

Linux Kubuntu

hello,
I was installing Citrix receiver on my Kubuntu v15, box the other day, and notice this in the install instructions

sudo apt-get -f install  

the instructions said that this command Installs dependencies and finish configuring the package(s).

I have used apt-get for a while, but this is the first time I've seen this. I keep trying to pick up useful commands, and if that is what this does, it sounds very useful.
My question is, why wouldn't you do this on all apt-get installs? It does seem like apt-get is good at getting dependencies, but once in a while I have dependencies missing. Also, it sounds like a great idea that it  "finish configuring the package(s)."
Avatar of rindi
rindi
Flag of Switzerland image

Actually Apt-get always tries to install the dependencies. -f is only needed if some packages are broken in which case -f tries to fix them. Broken packages can happen when an installation is interrupted for example, when an installation fails etc.
Avatar of JeffBeall

ASKER

hello again, you answered my last Linux question.
so would logic have it that,

sudo apt-get -f install

would be use more in a scenario in which you run apt-get and there are some errors. You could run this command and see if that fixes it?
Also, is aptitude better than apt-get? I've tried both, but I thought I saw something about it being better.
ASKER CERTIFIED SOLUTION
Avatar of rindi
rindi
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sounds great! thanks for the help again.