From Fedora Project Wiki

(Created page with '{{admon/important|Draft|This page is a draft and not ready yet.}} = Differences to Ubuntu = Although looking familiar, Fedora does some things different to Ubuntu. This page trie...')
 
No edit summary
Line 1: Line 1:
{{admon/important|Draft|This page is a draft and not ready yet.}}
{{admon/important|Draft|This page is a draft and not ready yet.}}
= Differences to Ubuntu =
= Differences to Ubuntu =
Although looking familiar, Fedora does some things different to Ubuntu. This page tries to explain the major differences to Ubuntu in day-to-day use.
Although looking familiar, Fedora does some things different than Ubuntu. This page tries to explain the major differences to Ubuntu in day-to-day use and introduce former Ubuntu users to the Fedora tools.


== Becoming root ==
== Becoming root ==
Line 33: Line 33:
|}
|}
=== Updating software ===
=== Updating software ===
If you want to keep your system updated, the PackageKit update applet will help you. It will notify you about updated packages and security updates. Its settings can be changed at System->Preferences->Software Updates. If you want to update your system manually, open System->Administation->Software Update or run
If you want to keep your system updated, the PackageKit update applet will help you. It will notify you about updated packages and security updates. Its settings can be changed at ''System->Preferences->Software Updates''. If you want to update your system manually, open ''System->Administation->Software Update'' or run
<pre>yum update</pre> as <code>root</code>.
<pre>yum update</pre> as <code>root</code>.
=== Installing/Removing software ===
=== Installing/Removing software ===
If you want to install or remove software, open System->Administration->Add/Remove Software. To install or uninstall packages, check or uncheck their checkboxes.
If you want to install or remove software, open ''System->Administration->Add/Remove Software''. To install or uninstall packages, check or uncheck their checkboxes.
{{admon/note|Adding and removing|Note that the graphical frontend can't install and uninstall packages at the same time yet}}
{{admon/note|Adding and removing at the same time|Note that the graphical frontend can't install and uninstall packages at the same time yet}}
 
For installing packages on the command line, simply type
<pre>yum install package1 package2 package3</pre>
and for removing packages
<pre>yum remove package2</pre>
==== The yum shell ====
If you want to add and remove packages at the same time, or trigger mass transactions, like updating your system, then installing <code>firefox</code> and <code>emesene</code>, and then removing <code>pidgin</code>, you can use the yum shell.
Open the yum shell (as <code>root</code>) with
<pre>yum shell</pre>
Then you can simply type
<pre>
update
install firefox emesene
remove pidgin
transaction run
</pre>
You can use any valid yum command in the yum shell. To see what it will do, type <pre>transaction list</pre>
and to accept the changes, type <pre>transaction run</pre>.
For more information about the yum shell, have a look at the yum-shell manual page
<pre>man yum-shell</pre>
=== Searching software ===
You can search software in the graphical ''Add/Remove Software'' program by entering search terms in the search box, or on the command line by typing
<pre>yum search searchterm1 searchterm2</pre>
=== Getting the restricted stuff ===
If you are looking for the equivalent of the Ubuntu <code>restricted</code> and <code>multiverse</code> repositories, that include patented and closed source technologies and programs, consider enabling the [http://rpmfusion.org/Configuration RPMFusion repository]. '''free''' is the equivalent of <code>universe</code> and contains potentially patent-encumbered software like <code>gstreamer-plugins-bad</code> or the <code>VLC media player</code>
'''nonfree''' includes non-free software like proprietary 3D graphics drivers.
These repositories can easily be enabled by typing (as <code>root</code>):
<pre>su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'</pre>
{{admon/important|RPMFusion and the law|Using software from RPMFusion may illegal in your country}}

Revision as of 12:34, 22 July 2009

Important.png
Draft
This page is a draft and not ready yet.

Differences to Ubuntu

Although looking familiar, Fedora does some things different than Ubuntu. This page tries to explain the major differences to Ubuntu in day-to-day use and introduce former Ubuntu users to the Fedora tools.

Becoming root

The biggest difference for users coming from Ubuntu to Fedora is that sudo does not work. In Fedora, root access can be gained with

su

su will ask for your root password, not your regular user password. The root password is the password you entered while installing, not the password you entered when creating a user account after your first boot.

After you logged in successfully as root, you have administrative rights as long as you close the terminal or log out with

exit
Idea.png
Using sudo
If you want to use sudo anyway, have a look at Configuring_Sudo

Package Management

Fedora uses different tools for package management than Ubuntu. Here is a quick overview how to accomplish common tasks in Fedora:

Ubuntu command Fedora command Notes
apt-get update yum check-update You don't need to do this as yum updates its cache automatically before performing transactions
apt-get upgrade yum update -
apt-get dist-upgrade N/A Distro upgrades with yum are possible, but not recommended. Use PreUpgrade instead
apt-get install yum install -
apt-get remove yum remove -
apt-get purge N/A -
apt-cache search yum search -

Updating software

If you want to keep your system updated, the PackageKit update applet will help you. It will notify you about updated packages and security updates. Its settings can be changed at System->Preferences->Software Updates. If you want to update your system manually, open System->Administation->Software Update or run

yum update

as root.

Installing/Removing software

If you want to install or remove software, open System->Administration->Add/Remove Software. To install or uninstall packages, check or uncheck their checkboxes.

Note.png
Adding and removing at the same time
Note that the graphical frontend can't install and uninstall packages at the same time yet

For installing packages on the command line, simply type

yum install package1 package2 package3

and for removing packages

yum remove package2

The yum shell

If you want to add and remove packages at the same time, or trigger mass transactions, like updating your system, then installing firefox and emesene, and then removing pidgin, you can use the yum shell. Open the yum shell (as root) with

yum shell

Then you can simply type

update
install firefox emesene
remove pidgin
transaction run

You can use any valid yum command in the yum shell. To see what it will do, type

transaction list

and to accept the changes, type

transaction run

.

For more information about the yum shell, have a look at the yum-shell manual page

man yum-shell

Searching software

You can search software in the graphical Add/Remove Software program by entering search terms in the search box, or on the command line by typing

yum search searchterm1 searchterm2

Getting the restricted stuff

If you are looking for the equivalent of the Ubuntu restricted and multiverse repositories, that include patented and closed source technologies and programs, consider enabling the RPMFusion repository. free is the equivalent of universe and contains potentially patent-encumbered software like gstreamer-plugins-bad or the VLC media player nonfree includes non-free software like proprietary 3D graphics drivers. These repositories can easily be enabled by typing (as root):

su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
Important.png
RPMFusion and the law
Using software from RPMFusion may illegal in your country