Ask Your Question
3

What does Fedora use in place of apt-get?

asked 2012-01-23 20:37:45 -0500

Slayer gravatar image

updated 2017-01-13 15:35:05 -0500

mattdm gravatar image

I was looking forward to installing Fedora, but now that I have it installed I find that some of the console commands are missing.... such as the basic apt-get and the switch desk command.

I have limited to little experience in Linux and I am using this as a learning project. Is there a way someone could help get me started?

As far as packages go like apt-get how would I install it since its not in the terminal already?

edit retag flag offensive close merge delete

5 Answers

Sort by » oldest newest most voted
3

answered 2012-01-24 02:07:38 -0500

ZenDark gravatar image

updated 2017-06-21 08:29:43 -0500

hhlp gravatar image

YUM is the apt-get/aptitude equivalent in Fedora.

yum install package_name

yum update <- to install all updates available

YUMEX is a nice front-end for yum. So if you are new to Fedora.

yum install yumex
yumex

To switch desktop, in the gdm or kdm screen (login graphical screen), you have the option to select your desktop (gnome, kde, lxde...)

And you can find a lot of doc here: http://docs.fedoraproject.org/en-US/i...

FEDORA 22 and Beyound

DNF, the next-generation replacement for Yum

And you can find a lot of docs here: https://dnf.readthedocs.io/en/latest/

YUMEX-DNF is a nice front-end for dnf. So if you are new to Fedora.

sudo dnf install yumex-dnf
edit flag offensive delete link more

Comments

how about Fedora 22 that uses DNF ?

mauriciograciag gravatar imagemauriciograciag ( 2015-08-03 20:59:12 -0500 )edit

@hhlp IMHO it is not fair to edit an answer in a way like that. Edits (by third-parties, so not by the original answer author) of answers should only fix spelling mistakes or clarify some things, but do not change the content substantially. Especially, if there are other, probably, better answers having the same number of upvotes, which would maybe get to top and replace the old answer (and thus also fix the problem). You could, of course, change, which answer has been marked as solved, i.e. unmark a selected answer.

rugk gravatar imagerugk ( 2017-07-03 15:25:31 -0500 )edit

@rugk -- I'm with you on this. Although @hhlp came up with an accurate / correct (at this time) answer, such edits should not ride on the existing upvotes (and existing accepted answer tag). IMHO, this is more of a design issue as the edit should have been more delineated as an addition and the original answer should have been preserved.

jesseyu gravatar imagejesseyu ( 2018-01-18 15:33:29 -0500 )edit
3

answered 2017-06-19 12:57:52 -0500

rugk gravatar image

updated 2017-06-21 07:35:31 -0500

Nowadays Fedora uses dnf (the successor to yum).

As a comparison between Debian(-based) distros and Fedora/Red Hat-based distros:

what?                    | Debian                   | Fedora
------------------------ | ------------------------ | ------------------------------------------
package format           | .deb                     | .rpm
CLI tool for downloading | apt-get                  | (previously) yum, now dnf
custom config files      | /etc/apt/sources.list.d/ | /etc/yum.repos.d/
edit flag offensive delete link more

Comments

@florian Instead of throwing random links in here, please write what concern you.

rugk gravatar imagerugk ( 2017-06-19 13:43:56 -0500 )edit

It looks like you are the one that is concerned, not me. If you don't want any random link under your answer, I am happy to delete it.

florian gravatar imageflorian ( 2017-06-20 00:02:33 -0500 )edit

Ehh… okay. An explanation of the reason for that random link would have been suitable, but fine.

rugk gravatar imagerugk ( 2017-06-21 06:57:08 -0500 )edit
1

okay let's do it again.

For further information about about Fedora's package management, see this wiki page, for dnf take a look here. The full documentation of dnf is available here

florian gravatar imageflorian ( 2017-06-21 07:23:56 -0500 )edit

May I suggest you to add another line to your answer:

what?                    | Debian  | Fedora
------------------------ | ------- | ------
repository files           | /etc/apt/sources.list.d/    | /etc/yum.repos.d/
florian gravatar imageflorian ( 2017-06-21 07:26:52 -0500 )edit
1

answered 2012-01-24 02:08:50 -0500

xeranas gravatar image

In Fedora installing applications, updating system with yum (see more on FAQ). Usually Debian based systems use apt-get (Fedora comes from Red Hat).

edit flag offensive delete link more
-1

answered 2017-06-20 00:12:48 -0500

bschof gravatar image

Why does Fedora not accept both apt-get and dnf like if you enter yum?

edit flag offensive delete link more

Comments

This is a new question too – although related. In any case the answer is: Because Fedora newer used apt-get and apt-get has a different syntax. These are just two different systems and when you are using Fedora it is not that hard to remember to use dnf.

rugk gravatar imagerugk ( 2017-06-21 07:04:14 -0500 )edit
-1

answered 2017-06-20 00:14:41 -0500

bschof gravatar image

What is the switch desk command and what does it do?

edit flag offensive delete link more

Comments

This is a new question. Please ask it in a new question (rop right button) instead of adding it as an "answer" here.

rugk gravatar imagerugk ( 2017-06-21 07:02:23 -0500 )edit

Question Tools

Stats

Asked: 2012-01-23 20:37:45 -0500

Seen: 136,866 times

Last updated: Jun 21 '17