Convert to and from Gentoo Fedora
I use two main linux distros. Fedora on my own boxens and desktop/laptop and gentoo on the gateway, devel boxens and other servers. And I kinda' mess them up. Here's what I usually mess.
Updating the package database
This command only checks to see if new packages are avaiable, and will not install anything onto your computer. Yum actually updates its list of packages at every run, unless you use the -C option to use the cached list.
emerge-webrsync (If rsync does not work)
Update All Packages on your system
This command will actually install all of the updates on your system. The default behavior in yum is to ask before actually installing the updated packages; this behavior is replicated in emerge through the use of the --ask (-a) flag.
emerge -aDv world
Installing a specific package
This will install only specific packages. You can install more than one if desired.
yum -y install app1 app2
yum install app1 app2
emerge app1 app2
emerge -a app1 app2
Reinstalling a single package
Following the same pattern as above, more than one can be done at a time if desired.
yum update app1
emerge --oneshot app1
Searching for packages in the database
yum search app1
emerge --searchdesc app1
Note: On Gentoo, it's actually much better to install and use either the esearch package or the eix package to do a search. This is because they cache the searches, and are much faster than using emerge --search. You use them like so:
Removing a package
yum remove app1
emerge --unmerge app1
To stop/start/whatever a service, you need to call the /etc/init.d script directly. There is no "service" command.
To enable/disable service on boot:
chkconfig <service> on chkconfig <service> off
to specify runlevel:
chkconfig --levels 235 <service> on
rc-update add <service> <runlevel> rc-update del <service> <runlevel>
rc-update add apache2 default rc-update del alsasound boot