 |
01-04-2007, 06:44 PM
|
#1 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Yum requires NET
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.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
01-04-2007, 06:57 PM
|
#2 (permalink)
|
|
I see right through you.
Join Date: Sep 2005
Location: Chennai
Posts: 597
|
Re: Yum requires NET
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.
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
Last edited by Sykora; 05-04-2007 at 05:47 PM.
|
|
|
01-04-2007, 06:59 PM
|
#3 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Yum requires NET
Quote:
|
Originally Posted by Sykora
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
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
01-04-2007, 07:13 PM
|
#4 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: Yum requires NET
nah.. That shd work.. Jus login as root nd open terminal.. Type
rpm -ivh /path/name.rpm and install the rpm
|
|
|
01-04-2007, 07:16 PM
|
#5 (permalink)
|
|
MMO Addict
Join Date: Jul 2004
Location: Bangalore
Posts: 1,474
|
Re: Yum requires NET
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?
|
|
|
01-04-2007, 10:00 PM
|
#6 (permalink)
|
|
I see right through you.
Join Date: Sep 2005
Location: Chennai
Posts: 597
|
Re: Yum requires NET
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.
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
|
|
|
02-04-2007, 03:15 AM
|
#7 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: Yum requires NET
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!
__________________
Bad Bad server.....No candy for u!
|
|
|
03-04-2007, 06:22 PM
|
#8 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Yum requires NET
when logged in as root, in the terminal, i typed-
it tries to connect. if i type
Code:
yum install /root/php.rpm
will it work?
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
03-04-2007, 06:44 PM
|
#9 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: Yum requires NET
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*"!
__________________
Bad Bad server.....No candy for u!
|
|
|
04-04-2007, 06:39 PM
|
#10 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Yum requires NET
^ 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:
http://atrpms.net/dist/common/bash-completion/
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
04-04-2007, 07:04 PM
|
#11 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Yum requires NET
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.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
04-04-2007, 07:14 PM
|
#12 (permalink)
|
|
I see right through you.
Join Date: Sep 2005
Location: Chennai
Posts: 597
|
Re: Yum requires NET
Quote:
|
Originally Posted by praka123
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.
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
|
|
|
04-04-2007, 07:43 PM
|
#13 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Yum requires NET
It works with apt.like apt-get install php:: and it completes,so i expect will work with rpm distros too.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
05-04-2007, 04:48 AM
|
#14 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: Yum requires NET
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!
__________________
Bad Bad server.....No candy for u!
Last edited by mediator; 05-04-2007 at 04:48 AM.
Reason: Automerged Doublepost
|
|
|
05-04-2007, 05:35 AM
|
#15 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Yum requires NET
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
~$ . /etc/bash_completion
http://www.debian-administration.org/articles/316
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
Last edited by praka123; 05-04-2007 at 05:47 AM.
|
|
|
05-04-2007, 02:15 PM
|
#16 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: Yum requires NET
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!
__________________
Bad Bad server.....No candy for u!
|
|
|
05-04-2007, 06:23 PM
|
#17 (permalink)
|
|
I see right through you.
Join Date: Sep 2005
Location: Chennai
Posts: 597
|
Re: Yum requires NET
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
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
|
|
|
05-04-2007, 06:40 PM
|
#18 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Quote:
|
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.
|
http://www.oreillynet.com/linux/blog...ving_bash.html
Quote:
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.
|
http://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. 
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
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
Last edited by praka123; 05-04-2007 at 06:47 PM.
|
|
|
05-04-2007, 07:31 PM
|
#19 (permalink)
|
|
I see right through you.
Join Date: Sep 2005
Location: Chennai
Posts: 597
|
Re: Yum requires NET
Found it. :
Quote:
|
Originally Posted by http://aptsh.berlios.de/?q=node/2
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...
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
|
|
|
05-04-2007, 09:06 PM
|
#20 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: Yum requires NET
I'll surely try the aptsh. Neways
Quote:
|
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.
|
__________________
Bad Bad server.....No candy for u!
|
|
|
06-04-2007, 04:02 AM
|
#21 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Yum requires NET
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.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
06-04-2007, 04:29 AM
|
#22 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: Yum requires NET
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.
__________________
Bad Bad server.....No candy for u!
|
|
|
06-04-2007, 04:48 AM
|
#23 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Yum requires NET
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.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
08-04-2007, 06:33 PM
|
#24 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Yum requires NET
Now can u guys stop pondering over this topic?
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
08-04-2007, 06:54 PM
|
#25 (permalink)
|
|
I see right through you.
Join Date: Sep 2005
Location: Chennai
Posts: 597
|
Re: Yum requires NET
Why?
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
|
|
|
08-04-2007, 06:56 PM
|
#26 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
Re: Yum requires NET
Quote:
|
Originally Posted by Sykora
Why?
|
My prob is solved. If u guys wish to ponder, then keep pondering!
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Amd 64 requires min 1kw
|
akshayt |
CPU / Motherboards |
16 |
06-04-2005 06:19 PM |
|
|
|