LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2015, 09:53 AM   #1
itsallgood
LQ Newbie
 
Registered: Jan 2015
Posts: 26

Rep: Reputation: Disabled
Is there any reason to remove installed repositories when I am done with them?


Are there any reasons why I should remove a repository when I am done using it? Will this cause any compatibility issues in the future? Or, can I keep all of the additional repos installed?

Thanks.
 
Old 04-16-2015, 10:53 AM   #2
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
What distro are you using?

You almost always want to leave the repository there so that you can get updates.
 
Old 04-16-2015, 11:02 AM   #3
itsallgood
LQ Newbie
 
Registered: Jan 2015
Posts: 26

Original Poster
Rep: Reputation: Disabled
I'm on CentOS 6.5.

I once had someone tell me that I should disable or remove repositories when I am done using them, because it could slow yum down significantly and cause dependency issues. I'm new to Linux, have been searching online to see if I can recover any other information regarding this and have not found much, if anything. Thanks for your response, maples, was wondering if anyone had issues leaving repos in place or if I should be good to go. This person was talking about a server environment if it would make any difference.
 
Old 04-16-2015, 11:57 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,158

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
The slowing down is simply a matter of the data having to be updated for all active repositories when you run yum, gpk, or apper: unless you have a very slow internet connection, it's hardly going to be a problem. After all, you don't install new software very often, but you do want to keep up-to-date, as maples said.

The matter is dependencies is very important, however. It's explained here
http://wiki.centos.org/AdditionalResources/Repositories
The best way to avoid nasty accidents is to set priorities
http://wiki.centos.org/PackageManagement/Yum/Priorities
I use priority=1 for CentOS, 2 for EPEL, 3 for RPMfusion.
 
Old 04-16-2015, 12:40 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by itsallgood View Post
I'm on CentOS 6.5.
Then you're already one release behind.


Quote:
Originally Posted by itsallgood View Post
I once had someone tell me that I should disable or remove repositories when I am done using them, because it could slow yum down significantly and cause dependency issues.
Couple of things:
First of all disabling repos means not being notified of updates. That's a Bad Thing.
Next indeed priorities as DavidMcCann suggested but that will only help on install / update, not querying repos.
Next using the "yum-plugin-fastestmirror" plugin which speaks for itself. (And maybe "yum-plugin-rpm-warm-cache".)
Next, depending on what you query for, consecutive queries may use cached nfo so use "-C" as in 'yum info firefox; yum -C info armadillo;'.
Another thing is lean querying as in 'yum --disablerepo=\* --enablerepo=rsyslogd whatprovides */rsyslogd;'.

As far as dependency issues are concerned indeed straying from the recommendations listed in the AdditionalResources Wiki page leads to fear. Fear leads to anger etc, etc.


Quote:
Originally Posted by itsallgood View Post
This person was talking about a server environment if it would make any difference.
No it doesn't. Well there are exceptions like repos you get one and only one thing from and knowing that package won't be updated in ages. However that would be a good reason to question utilizing such repos in the first place.
 
  


Reply


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
how to remove a package from local repositories rupeshforu Debian 24 07-07-2013 11:08 PM
Automate 'Remove all Repositories' through SSH random0munky Linux - Server 1 06-25-2013 02:00 PM
LXer: Ubuntu Sees No Reason To Remove Mono from Default Install LXer Syndicated Linux News 0 07-02-2009 05:11 PM
How to remove slow repositories? Yast /10.2 lancest SUSE / openSUSE 2 01-17-2007 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 AM.

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