Monday, May 28, 2012

Started Using Ubuntu....

Started using Ubuntu Linux from today..
Tried checking out which version I am using the following command


$ cat /etc/lsb-release 
or
$ lsb_release -a


It says "Ubuntu 10.04.3 LTS" which is nothing but the code name "Lucid" :)


Friday, March 20, 2009

Installing packages on Fedora10 - Commands

Fedora 10 has 'yum' package management manager to install packages on Fedora.
And also you can install packages using ADD or Remove Software tool provided by Fedora 10. This tool will be available under Administrator tools.

  1. You should be login as a root before installing packages.
  2. Try to first clean the yum cache.
    [root@fedora10 ~]# yum clean all
    Loaded plugins: refresh-packagekit
    Cleaning up Everything
    [root@fedora10 ~]#
  3. Then install the package required by using the following command.
    [root@fedora10 ~]# yum -y install for example
    [root@fedora10 ~]# yum -y install kdesdk*
    It installs all the packages starts with kdesdk and also any dependency packages.
You may interest in following blogs too...
Install packages from DVD instead Internet

How to install extra packages on Fedora10 from DVD

By default Fedora 10 will install any new packages from internet even though we have Media like DVD or iso image on harddisk.
To add or remove software a graphical tool is provided with fedora10. If you want install through command line yum package is available. Both will try to install packages from internet by default.

So to get install from the other media following are the steps to be followed..
  1. Login to fedora 10 and Open a terminal. If you are not logged in as root, use 'su' command to login as a root. It asks you root password. Once you enter your terminal will login as root.
    [root@fedora ~]# su
  2. Change working directory to /etc/yum.repos.d/
    [root@fedora ~]# cd /etc/yum.repos.d/
  3. Check the files using 'ls' command. It should list the following files
    fedora-rawhide.repo fedora.repo fedora-updates.repo fedora-updates-testing.repo
  4. Take a backup of these files. I have done backup by creating a backup folder in that directory.
    [root@fedora /etc/yum.repos.d/]# mkdir backup
    [root@fedora /etc/yum.repos.d/]# cp ./*.* backup
  5. Now make sure you DVD mounted or not. If it is mounted normally the name will be as follows Fedora 10 i368 DVD and the mounted drive will be accessed from /media/Fedora 10 i368 DVD/
  6. Now edit the 'fedora.repo' by using any editor. I normally uses 'vi' editor. Just comment the first two lines shown below and add a third line in the file.
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
    baseurl=file:///media/Fedora%2010%20i386%20DVD/
    and then save and close the file.
  7. Now edit the 'fedora-updates.repo'. In this file just make the change enabled=0.
  8. Make sure in the other two files also has enabled=0.
And now you can install the packages from the Media like DVD.

For installing packages go through this link