Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Fedora checks all repository for updating when every time i want to install some packages from yum. this is waste of time because i know they are updated!

how could i disable this checking?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

if you know yum is updated then before going to install go to

/etc/yum.repos.d directory and edit /etc/yum.repos.d/fedora-updates.repo

and make changes in updates. In updates there is a value enabled set to 1, so change this to 0.

enabled=value

…where value is one of:

0 — Do not include this repository as a package source when performing updates and installs. This is an easy way of quickly turning repositories on and off, which is useful when you desire a single package from a repository that you do not want to enable for updates or installs.

1 — Include this repository as a package source.

Turning repositories on and off can also be performed by passing either the --enablerepo=repo_name or --disablerepo=repo_name option to yum, or through the Add/Remove Software window of the PackageKit utility. 
share|improve this answer

You can Simply use :

yum --disablerepo=\* --enablerepo=your_repo  install packagename

You can list repo using :

yum repolist

if you want to disable permanent then you have to edit /etc/yum.repos.d/*.repo and disable it manually

share|improve this answer

The "repo is up to date" check is fast, so it shouldn't be a bother. Going around disabling repositories for the sake of a few seconds will exact bloody revenge later...

If you are worried that yum -y install package-A; yum -y install packge-B; ... will do checking over and over, just do yum -y install package-A package-B ...

BTW, Fedora 18 has the experimental dnf yum replacement, much faster and accurate. It can be installed in paralell. Works like a charm, but still has some rough edges (when it decides that there are unresolvable conflicts, it just finishes silently without doing anything).

share|improve this answer
    
I know about install multiple package, and also I use dnf, but i want just disable checking because it every time download 8 MB for updating repoes. –  Milad Sobhkhiz Feb 19 '13 at 7:12
    
That shouldn't be, only the small metadata describing the repository gets downloaded, unless there have been changes. Sure, Fedora 18 has been rather active (as Fedora always is when just released), but that definitely shouldn't happen every time. –  vonbrand Feb 19 '13 at 12:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.