Saturday, April 3, 2010

Downloading RPM's using YUM

YUM now provides you with the ability to :
1. Download the RPM's without installing them.
2. Just get the list of URLs from where the RPM's would be downloaded.
3. Resolve the dependencies for the package that you plan to download, and get then too along with the package.
4. Get the source if you are intrested in that being more geeky.

And not just this much , yum will get you all this specific to your release and arch,so no more no-arch packages.

So here is how to go with this :
First of all you need to install the package 'yum-utils' as the utility that provides all this functionality using the configuration of YUM. Make sure that this all will work using the repos (software repositories both online and offline (if-any)) configured under /etc/yum.repos.d/ that are used by YUM for package searching, dependency resolution and many other packages related tasks. It all depends on the configuration in the repo files, using which yum will be looking up the packages in the stable and unstable repositories.

1. Download of RPM's
# yumdownloader firefox
The command will download the latest firefox from the closeset repository , into the PWD.
2. URL's of the RPM.
# yumdownloader --urls firefox
This will be listing the location [URL] of the RPM's, but will not download them, hence saving the bandwidth.
3. Installation of packages sometime need other packages for its installation known as 'Dependencies'. If these are missing the package will not install.
So in order to install all of the dependent packages we need to fire.
# yumdownloader --resolve firefox
If we only need to see the dependent packages without installing them, in that case the command need to be edited with
# yumdownloader --urls --resolve firefox
4. As listed above 'yumdownloader' just lists/ download the RPM's by default but incase if you want to get the source packages, we need to add the option '--source' to the query.
# yumdownloader --source firefox
In order to just get the URL's of the scource packages, the command need to be edited a bit.
# yumdownloader --urls --source firefox
And if one need the URL's of the scource packages along with the source of the dependencies, the command will look like.
# yumdownloader --urls --resolve --source firefox

Once you have the RPM's you can install them using different methods, either by 'rpm' command or by 'yum'.

Plymouth : The new Graphical Boot of Fedora

Plymouth is the new graphical boot animation in place of the text messages that normally get shown corresponding to the services getting started. Fedora [Live CD] by default is supplied by only single Plymouth theme knows as 'plymouth-theme-charge', in which the boot process is animated with the Fedora Bubble getting filled up and finnaly it blasts off with white light.

There are multiple other plymouth themes provided by Fedora which can be installed using YUM.
[root@xbox ~]# yum list all|grep plymouth-theme
plymouth-theme-charge.x86_64 0.8.0-0.2009.29.09.19.3.fc12 @updates
plymouth-theme-fade-in.x86_64 0.8.0-0.2009.29.09.19.3.fc12 @updates
plymouth-theme-script.x86_64 0.8.0-0.2009.29.09.19.3.fc12 @updates
plymouth-theme-solar.x86_64 0.8.0-0.2009.29.09.19.3.fc12 @updates
plymouth-theme-spinfinity.x86_64 0.8.0-0.2009.29.09.19.3.fc12 @updates
[root@xbox ~]#

All of the missing ones can be installed using
#yum install
or simply installing all of them
#yum install -y plymouth-theme

Ocnce installed the themes can be check under '/usr/share/plymouth/themes/' with a symbolic link under there 'default.plymouth' pointing to the one being used presently.

In order to change the default theme the user needs to run the following command
#plymouth-set-default-theme where is the name of the directory under '/usr/share/plymouth/themes/'
e.g. in oder to instal the solar theme one need to run.
#plymouth-set-default-theme solar
Doing this updates the symbolic link under the '/usr/share/plymouth/themes/' to the new theme. BUt this is not all, we need to update the same with initrd and for doing that user needs to run following.
#/usr/libexec/plymouth/plymouth-update-initrd

Once this is done, the next time system is booted the Fedora Bubble will not be there and the new theme as selected by you will be there.

Fedora : Hiding Desktop Icons

With a aim to have a clean desktop of all of the default icons like My Computer, Sawrub's Home, Trash the Gconf Editor was looked at and here is how to do the same.
- Open Gconf-Editor under Application -> System Tools -> Configuiration Editor, if the same is missing install it first.
- Navigate to /apps/nautilus/desktop in the left hand side tree
- Once there check the right hand side frame for options corresponding to each of the default icons present at the desktop.
- In order to disable the Computer icon uncheck the flag against 'computer_icon_visible'
- The computer icon will no longer be availble at the desktop.
- Similar steps can be followed for other icons.