LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-01-2009, 12:23 PM   #1
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Rep: Reputation: 15
problem in installing fedora 9


Dear Members,
Happy New year to all of you. I have been using Fedora core 6 for last one & half years along with Windows XP in a dual booting system. Mine is a Pentium IV with speed 1.6 GHz and 512 MB SDRAM. Now I want to install Fedora core 9 from an almost everything DVD coming with the book "Fedora 9 and Red Hat Enterprise Linux Bible" by Christopher Negus. But everytime I tried to install with customizing the packages by choosing the individual packages partitioning using custom layout after running 'preparing to install' for sometime an error message comes saying "There was an error running your transaction for the following reasons(s): insufficient disk space, file conflicts
Deatails : You need more space in the following file systems : 321 M on /mnt/sysimage/usr"

My linux partitions are:
/dev/sda5 / ext3 8001 MB
/dev/sda6 swap 1028 MB
/dev/sda7 /usr 9131 MB

I also tried with different combinations of memory size of partitions, even sometime adding another partition /boot, but with the same result.I could not fathom out it.

Ultimately, I installed the system with minimal packages. But now I want to install the packages from the DVD which I haven't installed. Add/Remove programme install only from the net. The book suggested to use the command "yum localinstall /media/disk/Fedora/Packages/PACKAGE NAME'. But this is not working saying that 'it could not open' the said package. First of all the DVD is mounted on /mnt, not /mnt/disk and secondly the name of the disk is 'Fedora 9 i386 DVD'. I changed the command line accordingly and run it as root. But still it is not working. Feeling hopeless. I want your help.
-SKD
 
Old 01-01-2009, 07:12 PM   #2
r1d3r
Member
 
Registered: May 2008
Location: Glendale, CA
Distribution: ubuntu 12.04
Posts: 146

Rep: Reputation: 22
It seems you dont have enough free space in '/dev/sda7'.

BTW, you dont need to have a separate partition for the /usr directory
 
Old 01-01-2009, 07:34 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by dnskdas View Post
<snip>The book suggested to use the command "yum localinstall /media/disk/Fedora/Packages/PACKAGE NAME'. But this is not working saying that 'it could not open' the said package. First of all the DVD is mounted on /mnt, not /mnt[Did you mean media?]/disk and secondly the name of the disk is 'Fedora 9 i386 DVD'. </snip>
The name of the disk is irrelevant for the yum command. It's just a label of the DVD file system. Did you try yum localinstall /mnt/Fedora/Packages/PACKAGE NAME? The Fedora and Packages are just names of directories on the DVD file system. If you open the DVD in a GUI file manager, you should be able to navigate to the Packages sub-directory and see all the packages that are on the DVD.

You might also want to look in your book for a discussion of /etc/yum.repos.d/ which should describe how you can add the DVD to the default repository list so all you need to do is a yum install PACKAGE NAME.
 
Old 01-02-2009, 05:42 AM   #4
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
Thank you PTrenholme & r1d3r.
I have tried yum localinstall /media/Fedora/Packages/PACKAGE NAME e.g., k3b*. But it is not working. I will try /mnt/Fedora/Packages/PACKAGE NAME.
Also I have navigated the DVD already got the name of the packages. Only problem is it is difficult to know which ones are installed except few. May be there is some way I do not know. I am also trying to get the way to add the DVD in the repository.

About r1d3r's suggestion about partitioning, what I know is that the softwares are generally stored in /usr. I could have created /root, <swap> & /home which is suggested by some others. But perhaps atleast three partitions are needed.

Hoping for more of your reply
-SKD
 
Old 01-02-2009, 12:16 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Generally, only one partition is actually needed: "/", although having swap on its own partition is usually a good idea since then swap can use its own partition type. (This scheme, with only / and swap, is what is used by Ubuntu and several other distributions.)

By default, Fedora will use two partitions - but with a different organization. The installer (anaconda) will create two partitions, /boot and a "Logical Volume Group (VG)" partition. Then it will create two "logical" partitions in the VG, one for / and one for swap. The reason for having /boot on its own partition is simply because the GRUB version used by Fedora cannot access the contents of a VG, and the GRUB "Stage 2" process needs to be able to read the contents of /boot.

All that is by way of saying that the whole "Logical Volume Management" system is best avoided unless you have a fairly large disk farm and need the flexibility of being able to mix dissimilar physical devices into a single "logical" device.

The disadvantage of having several partitions on a single disk is that the size of the parts of the file system on any partition are limited by the physical partition size. By keeping the number of partitions as small as possible, you optimize the use of your hard drive. There is no advantage to keeping parts of the file system in separate partitions unless you wish to impose artificial limits on your system use. (Note that the UNIX "file system" concept stands in stark contrast to the old fashioned concept that each storage device can only be accessed as a separate "thing." When the only "storage device" available was punched cards or magnetic tape, the older concept made some sense, but those days are rapidly fading into the mists of history.)

See if you can install the yumex package to get a nice GUI interface to yum. You can then display a list of all your installed packages. Or, if you're using GNOME or KDE, look in the menu for a "Package Manager" application. Most of those will also list your installed packages.

If you prefer working from the command line, look at the "query" options in man rpm to see how to generate a list of your installed packages.
 
Old 01-02-2009, 08:16 PM   #6
r1d3r
Member
 
Registered: May 2008
Location: Glendale, CA
Distribution: ubuntu 12.04
Posts: 146

Rep: Reputation: 22
Quote:
Originally Posted by dnskdas View Post
what I know is that the softwares are generally stored in /usr.
You are partially right, but no not ALL software are installed in that directory.

For example ktorrent and virtualbox and some other GUI programs are installed in the /opt and some of CLI programs are in the /bin directory, and the ones that require super user password are located in /sbin.

BTW, when you reinstall your distro, it will reinstall them, and besides it is somewhat annoying to see some programs installed on your system but your package manager says its not!
 
Old 01-03-2009, 03:39 AM   #7
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
Thanks for your valuable knowledge about partitioning. Perhaps then if I make only two partions ("/" & <swap>) & may be add a small partition /boot, that disk shortage would not occur.

About my earlier problem, since the disk is automatically mounted in /media, the "localinstall /mnt/Fedora/Packages/PACKAGE NAME" would not work. I used package manager also. Since it use internet connection, it is a bit time consuming. Also I could not still add the DVD in the repository. I tried to copy the rpm packages into my local directory and then by yum localinstall. It is working but again it is downloading dependencies from internet which are quite big and perhaps not needed could I install them from the DVD. I might try to install them using rpm command, but that might again be aborted for requirement of dependencies. I was thinking that can I install the uninstalled packages if I try to upgrade by using the same DVD although I have doubt about it. May be I have to repartition my system according to your suggestions and reinstall the system.
 
Old 01-03-2009, 11:10 AM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Strange. Does your Fedora 9 book tell you how to create a repository definition for a DVD?

It's fairly easy, and would let you avoid the slow Internet connection until you wanted to update a program to a newer version.

Basically, all you need to do is create a file in /etc/yum.repos.d/ and then yum will look at the DVD for RPMs.

Here's one way to do it:

Just open a terminal window and enter the bold text in this:
Code:
$ su - #To log in as "root"
Password:
# cd /etc/yum.repos.d/   # To move to the repository definition directory
# cat <<EOF >dvd.repo
[DVD]
name=Fedora 9 DVD
baseurl=file:///media/cd/
enabled=0
gpgcheck=0
EOF
# yum --disablerepo=* --enablerepo=DVD install package # to install package
Note that that sets up the DVD repository as disabled by default. That's so yum will not "barf" when the DVD is not mounted.
The options passed to yum in the last line first disable the default repositories so the Internet won't be accessed and then enable the DVD repository.

The baseurl line, above, may need to be changed. You can verify the value to put in that line by using the ls commad to locate the respodata directory. For example, here's what I see when I do the ls on a Fedora 8 DVD. (Fedora 8 because I couldn't find a fedora 9 DVD right now.)
Code:
# ls /media/cd
fedora.css  README-BURNING-ISOS-en_US.txt  RPM-GPG-KEY-fedora
GPL         RELEASE-NOTES-en_US.html       RPM-GPG-KEY-fedora-rawhide
images      repodata                       RPM-GPG-KEY-fedora-test
isolinux    repoview                       RPM-GPG-KEY-rawhide
media.repo  RPM-GPG-KEY                    stylesheet-images
Packages    RPM-GPG-KEY-beta               TRANS.TBL
What you want after the file:// part is the path to the directory that contains the repodata subdirectory.

Hope this helps.
 
Old 01-03-2009, 12:56 PM   #9
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
Thank you very much. It is working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing module in Fedora Core 2 (2.6 kernel vs 2.4 problem?) Arodef Linux - Kernel 3 11-30-2007 02:55 PM
Installing Red5 - Problem @ Installing fedora-rpmdevtools Aziz Linux - Software 2 11-04-2006 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration