1

In Ubuntu I often use the command apt -f install to fix missing dependencies. Is there any such command in Fedora?

Also is there any equivalent of the command gdebi which also automatically fixes missing dependencies during install?

I am experienced in Ubuntu and now want to make hands dirty at fedora.

  • 1
    About apt -f install askubuntu.com/questions/58378/… -f, --fix-broken – Knud Larsen Jul 30 '16 at 15:02
  • My apt doesn't have an -f option in the man page. Perhaps you're looking for the apt-get -f | --fix-broken – sjsam Jul 31 '16 at 6:09
  • apt and apt-get ar sme in ubuntu 16.04 – rancho Jul 31 '16 at 13:54
4

You can find equivalences between package management commands on major Linux distributions (Arch Linux, RHEL/CentOS/Fedora, Debian/Ubuntu/Mint/elementary/…, SUSE, Gentoo) on the Pacman Rosetta. If you need Yum equivalents (for older RHEL/CentOS), check DNF vs Yum.

The equivalent of apt -f -s install as in “find missing dependencies of requested packages” is dnf repoquery --unsatisfied. For Yum, that's yum check. That tells you what to install with dnf install.

I don't know if Fedora has something closer to apt-get -f install that first tries to complete the installation of partially-installed packages.

  • dnf is not available in older fedora versions. Is there a yum equivalent? That said if on a newer release of fedora, there is no reason to prefer yum to dnf :) – sjsam Jul 31 '16 at 6:16
  • In fedora if there is missing dependencies then how do they fix it? – rancho Jul 31 '16 at 13:55
  • Also in Ubuntu you can do it by dpkg -i *.deb followed by apt -f install, but I rather prefer gdebi *deb. Is there any such command like gdebi in fedora – rancho Jul 31 '16 at 13:57
1

The dnf manual http://linuxmanpages.net/manpages/fedora21/man8/dnf.8.html

Yum / dnf http://dnf.readthedocs.io/en/latest/cli_vs_yum.html

» The gdebi functionality « : Installing downloaded packages, and their dependencies :

cd Downloads/
# dnf install ./[package].rpm
  • I know it, please read my question properly its not about installation, :) – rancho Jul 31 '16 at 14:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.