LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to tell yum not to update repo (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-tell-yum-not-to-update-repo-771391/)

megerdin 11-25-2009 01:47 AM

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.

centosboy 11-25-2009 01:59 AM

Quote:

Originally Posted by megerdin (Post 3768831)
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

megerdin 11-25-2009 02:53 AM

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

rkski 11-26-2009 01:04 AM

That means the stated package is not in your cache...you have to install without the -C option.

centosboy 11-26-2009 02:38 AM

Quote:

Originally Posted by megerdin (Post 3768891)
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 02:37 PM.