DIGIT-ARC read-only archive · snapshot: July 23, 2026

Yum requires NET

26 posts · originally from https://geek.digit.in/community/threads/yum-requires-net.53919/

nileshgr
nileshgr Original post #1
Apr 1, 2007 at 6:44 PM
I recently installed FC-6 on my machine. It works well. I have removed Windows. When i try to install any package either using Yum GUI or TUI, it tries to obtain information about the pacakge from the NET. Why??? When i start Yum GUI, it gives an error saying "Cannot find a baseurl for repo: core" My NET @ home is down currently. What to do????? Help. :(
Sykora
Sykora #2
Apr 1, 2007 at 6:57 PM
That's how yum works -- it needs the net to operate. The only thing you can do, is to get the installation files -- rpms in your case -- from other sources. Either use the FC6 installation media you used, or download them elsewhere.
nileshgr
Apr 1, 2007 at 6:59 PM
Sykora said:
That's now yum works -- it needs the net to operate. The only thing you can do, is to get the installation files -- rpms in your case -- from other sources. Either use the FC6 installation media you used, or download them elsewhere.
Even if i run n rpm file from my HDD/CD its the same error. Please Help :(
Pathik
Pathik #4
Apr 1, 2007 at 7:13 PM
nah.. That shd work.. Jus login as root nd open terminal.. Type
rpm -ivh /path/name.rpm and install the rpm
amitava82
Apr 1, 2007 at 7:16 PM
Don't know about rpm packages but i've encountered some deb packages which require net to download some libs which are not packed into it. may be its the same case?
Sykora
Sykora #6
Apr 1, 2007 at 10:00 PM
If an rpm requires dependencies, it'll usually throw a missing dependency error, and not try to fix it itself, afaik. That's what yum is for.

Like pathiks said, log in as root, and run the rpm. If it is an upgrade of something you already have, use -Uvh instead of -ivh and try it. rpm should not need to connect to the net.
mediator
Apr 2, 2007 at 3:15 AM
Yea it connects to the net most probably to tell wat the application is about. So try the terminal thing then! U really need to have net when installing or updating coz we still dont have plenty of PC magazines that promote such things!
nileshgr
Apr 3, 2007 at 6:22 PM
when logged in as root, in the terminal, i typed-
Code:
yum install php
it tries to connect. if i type
Code:
yum install /root/php.rpm
will it work?
mediator
Apr 3, 2007 at 6:44 PM
To install rpm just do "rpm -i rpm_package_name.rpm"

For installing php via yum, if u dunno the package name just do "yum -y install php*"!
praka123
praka123 #10
Apr 4, 2007 at 6:39 PM
^ just deviating a bit,
in such cases where the name of the pkgs are not known and you use terminals often,you can use bash-completion feature (provided default in debian and ubuntu) which completes the line by pressing TAB key.I think for rpm based distros bash-completion rpms are available.for eg; in fedora afaik u use "service foo restart" if u have bash-completion on working,u type in CLI bash shell= "service" <type some words of the service and press TAB OR press TAB once for full list> .though u can use /etc/init.d/* too.
thus for
"yum -y install php*" just type upto "yum -y install php" and press TAB for completion.I frequently uses bash completion in my Debian.Hope it helps for rpm users too.
for rpm distros:
*atrpms.net/dist/common/bash-completion/
nileshgr
nileshgr #11
Apr 4, 2007 at 7:04 PM
Ok. My NET connection has been restored. Tht was the root cause of the problem. I'll try the solutions above. Anyway, thanks for helping. :)
Sykora
Sykora #12
Apr 4, 2007 at 7:14 PM
praka123 said:
thus for "yum -y install php*" just type upto "yum -y install php" and press TAB for completion.

Have you specifically tried this for yum (or apt-get)? Because I don't think this works. Completion should only complete commands in your PATH, not if it needs to get a list of possibilities from an online repository. I'm not sure though.
praka123
praka123 #13
Apr 4, 2007 at 7:43 PM
It works with apt.like apt-get install php:: and it completes,so i expect will work with rpm distros too.
mediator
mediator #14
Apr 5, 2007 at 4:48 AM
I agree with @Sykora. I have tried the bash completion feature and noticed that it only completes the commands that r in path. Neways since u say so, then I'll surely try it out!

@prakash : I tried ur suggestion. But it didn't work! :oops:
praka123
praka123 #15
Apr 5, 2007 at 5:35 AM
thats sad.in debian & ubuntu,i just uncommented below lines in ~/.bashrc following lines
Code:
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
it auto completes much more than $PATH env.

did u sourced the file corresponding to.for eg
Code:
~$source /etc/bash_completion
or
~$ [B][SIZE=4].[/SIZE] [/B]/etc/bash_completion
*www.debian-administration.org/articles/316
mediator
mediator #16
Apr 5, 2007 at 2:15 PM
I also noted that the bash completion feature completes the name of the file in the working directory like for "more myplay tab" => "more myplaylist". But it doesn't complete anything/filename that is not in the path or in the working directory!
Sykora
Sykora #17
Apr 5, 2007 at 6:23 PM
I can't say much about bash in particular, because I don't use it, but I fail to see how in principle, a shell can complete anything that is not in PATH or is not in an environment variable that bash has been set to complete. The only other option is that your bash has been given a file containing a list of all available packages to complete, which is unlikely because the repositories change very often.

And the site you mentioned doesn't say anything (as far as I can see) about completing this kind of thing.

If on the other hand, what you're saying is correct, I definitely want to know about it, so please clarify :)
praka123
praka123 #18
Apr 5, 2007 at 6:40 PM
Firstly: the Debian bash package includes a file /etc/bash_completion which extends bash - for example, enabling zsh-style tab completion of hostnames. Source this file in your own .bashrc to get this functionality. It also makes it easy to extend/program bash yourself, via the directory /etc/bash_completion.d/, which is automatically sourced by /etc/bash_completion.
*www.oreillynet.com/linux/blog/2007/02/improving_bash.html
With bash competion installed you can use the TAB key to complete arguments to common commands like rpm, apt, find, grep etc. Also bash-completion will complete host-names for ssh, scp, by looking up hosts inside your $HOME/.ssh/authorized_keys file. For rpm based distros, bash-completion will even lookup package names already installed.
*bhaskarvk.info/technology/bash-tricks.html
do try ubuntu or debian.this afaik works with these distros only.there are no seperate pkgs for bash_completion in debian/ubuntu.
It is what i experiance,it completes virtually anything which i tries.it makes very easy to work with bash cli,an addiction.:p
I dont know much about the problem in fedora,mandrake rpm distros.
but look out the example quote from bash terminal in my debian:
Code:
sid:~# apt-get install php
Display all 252 possibilities? (y or n)
in next step it will display all those packages.

I think may be debian stores pkg details etc in some where in /var/
but if so,
it even completes cmd:
apt-get -t TAB TAB
Code:
root@sid:~# apt-get -t 
experimental  testing       unstable
showed my apt-pinning options too!
I dont understand much,but google may help
Sykora
Sykora #19
Apr 5, 2007 at 7:31 PM
Found it. :

*aptsh.berlios.de/?q=node/2 said:
Aptsh is a pseudo-shell for systems with Apt package managing tool. It's similar to AptShell from AptRpm, but it works not only with AptRpm (actually, it's being developed with Debian's Apt). Also, it's inspired by The Poldek from PLD.

But, what does it exactly do? Well, if you use Apt, you should know the situation - search for a package with apt-cache and copy its name to apt-get, repeat. And, you probably do not enjoy the situation before last execution of apt-get. If so, consider using aptsh - it offers that cute TAB completion which you always use while unix-shelling. It's smart enough to decide whether you're trying to remove or install/upgrade a package, and doesn't suggests you to remove your Gnome since you are a KDE maniac who has never seen (and never installed) that ugly Gnome. In short: a tool which makes life easier, although it's not necessary.

You may find few similarities between Aptsh and things like Wajig or Feta. Yes, it's the same sort of applications.

This is probably coming installed with Debian now, giving you the completion.
Thanks for mentioning this, it'll be very useful. Now to find a yum equivalent...
mediator
mediator #20
Apr 5, 2007 at 9:06 PM
I'll surely try the aptsh. Neways
it offers that cute TAB completion which you always use while unix-shelling. It's smart enough to decide whether you're trying to remove or install/upgrade a package, and doesn't suggests you to remove your Gnome since you are a KDE maniac who has never seen (and never installed) that ugly Gnome. In short: a tool which makes life easier, although it's not necessary.
:p
praka123
praka123 #21
Apr 6, 2007 at 4:02 AM
aptsh is not installed in debian.though u can.my bash_completion works without any such packages installed.
the completion feature is not limited to apt-* searches.it works!
if u have bash completion installed just source ur /etc/bash_completion and check for urself whether it completes yum/rpm commands.
Code:
~$source  /etc/bash_completion
then check like yum -y php (TAB TAB) in the same terminal.
mediator
mediator #22
Apr 6, 2007 at 4:29 AM
Hmmm......I have fedora 5 installed without any updates. I think thats y it may not be happening. Neways ubuntu is up-to-date. I'll try it out on Ubuntu when ever I'll have the time and access to it.
praka123
praka123 #23
Apr 6, 2007 at 4:48 AM
in ubuntu/debian its easy.
just uncomment these lines in ur $HOME/.bashrc.
Code:
 if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
it will work.
nileshgr
nileshgr #24
Apr 8, 2007 at 6:33 PM
Now can u guys stop pondering over this topic?
Sykora
Sykora #25
Apr 8, 2007 at 6:54 PM
Why?
nileshgr
nileshgr #26
Apr 8, 2007 at 6:56 PM
Sykora said:
My prob is solved. If u guys wish to ponder, then keep pondering! :D