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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-25-2009, 01:47 AM
|
#1
|
Member
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181
Rep:
|
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.
|
|
|
11-25-2009, 01:59 AM
|
#2
|
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep: 
|
Quote:
Originally Posted by megerdin
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
options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
|
|
|
11-25-2009, 02:53 AM
|
#3
|
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:
|
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
|
|
|
|
11-26-2009, 01:04 AM
|
#4
|
Member
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247
Rep:
|
That means the stated package is not in your cache...you have to install without the -C option.
|
|
|
11-26-2009, 02:38 AM
|
#5
|
Senior Member
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137
Rep: 
|
Quote:
Originally Posted by megerdin
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??
|
|
|
All times are GMT -5. The time now is 06:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|