LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2009, 01:47 AM   #1
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
how to tell yum not to update repo


when I tried to install any-package via yum. Its always try to update all repo, its very boring & waste of time.I want to do this manually when i have time, not automatically.

Is there any way to tell yum not to update repo before installing any repo.


I saw this post
, but its not helpful for me.
 
Old 11-25-2009, 01:59 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by megerdin View Post
when I tried to install any-package via yum. Its always try to update all repo, its very boring & waste of time.I want to do this manually when i have time, not automatically.

Is there any way to tell yum not to update repo before installing any repo.


I saw this post
, but its not helpful for me.
use

Code:
yum -C

options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
 
Old 11-25-2009, 02:53 AM   #3
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
Thanks !

Quote:
sudo yum install libsmbclient -C
Loaded plugins: refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: libsmbclient = 3.2.4-0.22.fc10 for package: libsmbclient-devel-3.2.4-0.22.fc10.i386
---> Package libsmbclient.i386 0:3.2.15-0.36.fc10 set to be updated
--> Running transaction check
---> Package libsmbclient-devel.i386 0:3.2.15-0.36.fc10 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== =========================================================
Package Arch Version Repository Size
==================================================================================================== =========================================================
Updating:
libsmbclient i386 3.2.15-0.36.fc10 updates 1.3 M
Updating for dependencies:
libsmbclient-devel i386 3.2.15-0.36.fc10 updates 65 k

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

Total download size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:


Error Downloading Packages:
libsmbclient-devel-3.2.15-0.36.fc10.i386: Caching enabled but no local cache of /var/cache/yum/updates/packages/libsmbclient-devel-3.2.15-0.36.fc10.i386.rpm from updates
and my yum.conf is..........

Quote:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
 
Old 11-26-2009, 01:04 AM   #4
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
That means the stated package is not in your cache...you have to install without the -C option.
 
Old 11-26-2009, 02:38 AM   #5
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by megerdin View Post
Thanks !



and my yum.conf is..........
and also change keepcache from 0 to 1.
Not normally a good idea, but that is what you are after right??
 
  


Reply

Tags
how, repo, update, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC 6 yum update Error: Cannot find a valid baseurl for repo: core marc1984 Linux - General 5 04-09-2009 01:50 PM
is there a REPO for kernel Versions; want to update using Yum dschief Linux - Newbie 6 03-25-2009 07:22 PM
yum always first does a update of repo data. How to work around that ? nkd Linux - Software 2 02-20-2009 04:33 PM
yum update problem, centos 4.92 repo no longer available parv Linux - Distributions 3 04-15-2007 07:10 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 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