Page 2 of 3

Re:

Posted: Sat May 05, 2007 8:11 am
by LinuxFreaK
Dear saquib_javed,
Salam,

Try following command as root.

# yum clean all
# yum install kdebase


If you still having issues then use following command.

# yum install kdebase localinstall=/media/dvd/

Best Regads.

Posted: Sun May 06, 2007 3:38 pm
by spirit_of_pak
Dear Saquib,

Here is kedit /etc/yum.repos.d/fedora-core.repo after editing,

Code: Select all

[core]
name=Fedora Core $releasever - $basearch
#baseurl= /home/RMPS
enabled=0
gpgcheck=1



before editing it was like this,

Code: Select all

[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=0
gpgcheck=1


Please note that I followed the steps as mentioned in the link in my previous post. I have read from that link that altough #baseurl= /home/RMPS is commented, but since enabled=0, it will force yum to look into baseurl that in my case is /home/RPMS. Also not that each .repo file in /etc/yum.repos.d/ has enabled=0

Re:

Posted: Mon May 07, 2007 8:24 am
by saquib_javed
LinuxFreaK wrote:Dear saquib_javed,
Salam,

Try following command as root.

# yum clean all
# yum install kdebase


If you still having issues then use following command.

# yum install kdebase localinstall=/media/dvd/

Best Regads.


still the media kind of error

Posted: Mon May 07, 2007 8:25 am
by saquib_javed
spirit_of_pak wrote:Dear Saquib,

Here is kedit /etc/yum.repos.d/fedora-core.repo after editing,

Code: Select all

[core]
name=Fedora Core $releasever - $basearch
#baseurl= /home/RMPS
enabled=0
gpgcheck=1



before editing it was like this,

Code: Select all

[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=0
gpgcheck=1


Please note that I followed the steps as mentioned in the link in my previous post. I have read from that link that altough #baseurl= /home/RMPS is commented, but since enabled=0, it will force yum to look into baseurl that in my case is /home/RPMS. Also not that each .repo file in /etc/yum.repos.d/ has enabled=0

nops it also didnt worked it didnt find any repo and no package was installed

Posted: Mon May 07, 2007 8:28 am
by saquib_javed
so is there a problem with my dvd or i am mistaking something :?

:cry: :cry:

Re:

Posted: Mon May 07, 2007 1:14 pm
by LinuxFreaK
Dear saquib_javed,
Salam,

Use this repo configuration file.

# mkdir /root/yum
# mv /etc/yum.repos.d/* /root/yum


Custom.repo

Code: Select all

[base]
name= Fedora Core $releasever - Base
mirrorlist=/media/DVD
baseurl=file:///media/DVD
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY


# yum clean all
# yum -y install samba


Code: Select all

root@mbox [/etc/yum.repos.d]# yum -y install samba
Setting up Install Process
Setting up repositories
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 569 kB    00:00
base      : ################################################## 1500/1500
Added 1500 new packages, deleted 0 old in 8.78 seconds
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for samba to pack into transaction set.
samba-3.0.10-1.4E.9.i386. 100% |=========================| 101 kB    00:00
---> Package samba.i386 0:3.0.10-1.4E.9 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 samba                   i386       3.0.10-1.4E.9    base               13 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 13 M
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: samba                        ######################### [1/1]

Installed: samba.i386 0:3.0.10-1.4E.9
Complete!


Best Regards.

Posted: Wed May 09, 2007 9:28 am
by saquib_javed
dude it also didnt worked

i tried to create a repo for the xmms rpm on my local partition but still it gave error like

Code: Select all

media://1161131669.029329%232/Fedora/RPMS/kdebase-3.5.4-12.fc6.i386.rpm


now thats very suspicious to me that i have disabled every repo except the my local xmms repo

:!: dude that means something is still referring to the media://1161131669.029329%232

now where the heck if came from and which configuration file is referring to it

:?:

Re:

Posted: Wed May 09, 2007 9:56 am
by LinuxFreaK
Dear saquib_javed,
Salam,

Did you checked my last post ?

Best Regards.

Posted: Thu May 10, 2007 8:54 am
by saquib_javed
definitely dude

Re:

Posted: Fri May 11, 2007 7:50 am
by LinuxFreaK
Dear saquib_javed,
Salam,

LinuxFreaK wrote:Dear saquib_javed,
Salam,

Use this repo configuration file.

# mkdir /root/yum
# mv /etc/yum.repos.d/* /root/yum


Custom.repo

Code: Select all

[base]
name= Fedora Core $releasever - Base
mirrorlist=/media/DVD
baseurl=file:///media/DVD
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY


# yum clean all
# yum -y install samba


Code: Select all

root@mbox [/etc/yum.repos.d]# yum -y install samba
Setting up Install Process
Setting up repositories
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 569 kB    00:00
base      : ################################################## 1500/1500
Added 1500 new packages, deleted 0 old in 8.78 seconds
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for samba to pack into transaction set.
samba-3.0.10-1.4E.9.i386. 100% |=========================| 101 kB    00:00
---> Package samba.i386 0:3.0.10-1.4E.9 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 samba                   i386       3.0.10-1.4E.9    base               13 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 13 M
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: samba                        ######################### [1/1]

Installed: samba.i386 0:3.0.10-1.4E.9
Complete!


Best Regards.


Have you applied this. I suspect that you did not read that post. If it working for me then it should working for you either you are doing some mistake. please post your configuration here.

Best Regards.

Posted: Tue May 15, 2007 9:22 am
by saquib_javed

Code: Select all

[root@localhost ~]# mount | grep hdc
/dev/hdc on /mnt/dvd type iso9660 (ro)
[root@localhost ~]#
[root@localhost ~]# mkdir /root/yum
[root@localhost ~]#
[root@localhost ~]# mv /etc/yum.repos.d/* /root/yum/
[root@localhost ~]#
[root@localhost ~]# cat > /etc/yum.repos.d/Custom.repo
[base]
name=Fedora Core $releasever - Base
mirrorlist=/mnt/dvd
baseurl=file:///mnt/dvd
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[1]+  Stopped                 cat >/etc/yum.repos.d/Custom.repo
[root@localhost ~]#
[root@localhost ~]# cat /etc/yum.repos.d/Custom.repo
[base]
name=Fedora Core $releasever - Base
mirrorlist=/mnt/dvd
baseurl=file:///mnt/dvd
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[root@localhost ~]#
[root@localhost ~]# yum clean all
Loading "installonlyn" plugin
Options Error: Error parsing '/mnt/dvd': URL must be http, ftp, file or https not ""
[root@localhost ~]#
[root@localhost ~]# vi /etc/yum.repos.d/Custom.repo
[root@localhost ~]#
[root@localhost ~]# cat /etc/yum.repos.d/Custom.repo
[base]
name=Fedora Core $releasever - Base
mirrorlist=file:///mnt/dvd
baseurl=file:///mnt/dvd
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[root@localhost ~]#
[root@localhost ~]# yum clean all
Loading "installonlyn" plugin
Cleaning up Everything
[root@localhost ~]#
[root@localhost ~]# yum -y install emacs
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist file:///mnt/dvd error was
[Errno 4] IOError: [Errno 21] Is a directory
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for emacs to pack into transaction set.
media://1161131669.029329%233/Fedora/RPMS/emacs-21.4-17.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
Trying other mirror.
Error: failed to retrieve Fedora/RPMS/emacs-21.4-17.i386.rpm from base
error was [Errno 4] IOError: <urlopen error unknown url type: media>
[root@localhost ~]#
[root@localhost ~]#

Re:

Posted: Tue May 15, 2007 10:15 am
by LinuxFreaK
Dear saquib_javed,
Salam,

Move all your repos files from /etc/yum.repos.d to /root/repos and make sure you have mount your DVD at mount point /mnt/dvd and try again.

Best Regards.

Posted: Tue May 15, 2007 3:17 pm
by saquib_javed
dude the output clearly says that i did that

bahi please help me

Re:

Posted: Wed May 16, 2007 9:13 am
by LinuxFreaK
Dear saquib_javed,
Salam,

saquib_javed wrote:dude the output clearly says that i did that bahi please help me


Thats really Odd. I have no clue why its not working. Better to dig in your log they might tell you some thing.

Best Regards.

Posted: Mon May 21, 2007 8:54 am
by saquib_javed
did it dude

i mounted my dvd as

Code: Select all

[root@localhost ~]# mount
/dev/hda8 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /media/FC-6 i386 DVD type iso9660 (ro,noexec,nosuid,nodev,noatime,uid=0,utf8)
[root@localhost ~]#


now made a directory for my repository

Code: Select all

[root@localhost ~]# mkdir /fedora-dvd


now installing the package that is responsible for creating the repository

Code: Select all

[root@localhost ~]# cd /media/FC-6\ i386\ DVD/Fedora/RPMS/
[root@localhost RPMS]# rpm -Uvh createrepo-0.4.4-2.fc6.noarch.rpm
warning: createrepo-0.4.4-2.fc6.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:createrepo             ########################################### [100%]
[root@localhost ~]#


now creating a symbolic link to the mounted dvd

Code: Select all

[root@localhost RPMS]# cd /fedora-dvd/
[root@localhost fedora-dvd]# ln -s /media/FC-6\ i386\ DVD/ dvd
[root@localhost fedora-dvd]# ls -l
total 4
lrwxrwxrwx 1 root root 21 May 19 21:45 dvd -> /media/FC-6 i386 DVD/
[root@localhost fedora-dvd]#


now creating a repository for the dvd packages; this will take time so issue command and do some other work ;)

Code: Select all

[root@localhost fedora-dvd]# createrepo .
2242/2242 - dvd/Fedora/RPMS/zsh-html-4.2.6-1.i386.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@localhost fedora-dvd]#


now creating a repo file for the dvd

Code: Select all

[root@localhost fedora-dvd]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# cp fedora-core.repo fedora-core-dvd.repo -v
`fedora-core.repo' -> `fedora-core-dvd.repo'


now edit the fedora-core-dvd.repo

Code: Select all

[root@localhost yum.repos.d]# vi fedora-core-dvd.repo
[root@localhost yum.repos.d]# cat fedora-core-dvd.repo
[core-dvd]
name=Fedora Core $releasever - $basearch
baseurl=file:///fedora-dvd/dvd
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-dvd-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-dvd-source]
name=Fedora Core $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


now make changes in core repo as follows

Code: Select all

[root@localhost yum.repos.d]# vi fedora-core.repo
[root@localhost yum.repos.d]# cat fedora-core.repo
[core]
name=Fedora Core $releasever - $basearch
baseurl=file:///fedora-dvd
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY



also disable the updates repo as follows

Code: Select all

[root@localhost yum.repos.d]# cat fedora-updates.repo
[updates]
name=Fedora Core $releasever - $basearch - Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fc$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-debuginfo]
name=Fedora Core $releasever - $basearch - Updates - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-fc$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

[updates-source]
name=Fedora Core $releasever - Updates Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-fc$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora


also disable the extras repo as follows

Code: Select all

[root@localhost yum.repos.d]# cat fedora-extras.repo
[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-$releasever&arch=$basearch
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-debuginfo]
name=Fedora Extras $releasever - $basearch - Debug
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/debug/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-debug-$releasever&arch=$basearch
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

[extras-source]
name=Fedora Extras $releasever - Source
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/SRPMS/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-source-$releasever&arch=$basearch
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
[root@localhost yum.repos.d]#


now try the following commands

Code: Select all

[root@localhost yum.repos.d]# yum clean all
Loading "installonlyn" plugin
Cleaning up Everything
[root@localhost yum.repos.d]# yum install kdeadmin -y
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                      100% |=========================|  951 B    00:00
dvd                       100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 666 kB    00:00
################################################## 2242/2242
primary.xml.gz            100% |=========================| 666 kB    00:00
################################################## 2242/2242
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for kdeadmin to pack into transaction set.
kdeadmin-3.5.4-2.fc6.i386 100% |=========================|  35 kB    00:00
---> Package kdeadmin.i386 7:3.5.4-2.fc6 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kdeadmin                i386       7:3.5.4-2.fc6    dvd               1.2 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 1.2 M
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Importing GPG key 0x4F2A6FD2 "Fedora Project <fedora@redhat.com>"
Importing GPG key 0xDB42A60E "Red Hat, Inc <security@redhat.com>"
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kdeadmin                     ######################### [1/1]

Installed: kdeadmin.i386 7:3.5.4-2.fc6
Complete!
[root@localhost yum.repos.d]#


these settings and commands should also work with the Add/Remove Software in the gnome pannel

thanks.