Re: [Fwd: Install / update problem]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Lauridsen wrote:
edwardspl@xxxxxxxxxx wrote:
Dear All,

Would you mind to help ?

[root@svr1 fc6]# yum localinstall telnet*.rpm
Loading "installonlyn" plugin
Setting up Local Package Process
Examining telnet-0.17-37.i386.rpm: telnet - 1:0.17-37.i386
Examining telnet-server-0.17-37.i386.rpm: telnet-server - 1:0.17-37.i386
Marking telnet-server-0.17-37.i386.rpm to be installed
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=c
ore-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: core
[root@svr1 fc6]#

How can we modify the config of yum, then it can be used for local disk to do the install / update ?

_______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum

_______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum
The idea of using 'yum localinstall rpmfile', insted of using 'rpm -ivh rpmfile' is that yum localinstall checks the dependencies in the rpmfile to install and gets them for the enabled repositories.

If you dont have access to the repositories on the internet, then you must create a local yum repository.

Try to read this, i might give you some ideas.
http://www.city-fan.org/tips/YumRepoFromImages

Tim

_______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum
Hello,

So, do you means :

1, edit /etc/yum.repos.d/fedora.repo or /etc/yum.repos.d/fedora-core.repo, whichever one is present
2, comment out any line starting with baseurl or mirrorlist
3, add a new line:
eg : baseurl=file:///usr/local/src/rpms

then copy any rpm package files in there, then run "yum localinstall rpm-file-name"

right ?

Edward.
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux