Changes

From SME Server
Jump to navigationJump to search
Restoring Default Yum Repositories
Line 44: Line 44:  
If a site has a RPM-GPG-KEY you have to install it first with a line such as.  
 
If a site has a RPM-GPG-KEY you have to install it first with a line such as.  
 
  rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
 
  rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
 +
 +
 +
====Restoring Default Yum Repositories====
 +
 +
If you have problems with your yum setup you may have entered dud repository values
 +
 +
remove the current values and restore the original setting with these commands
 +
 +
cd /home/e-smith/db/
 +
mv yum_repositories yum_repositories.po
 +
/etc/e-smith/events/actions/initialize-default-databases
 +
 +
Output is <br>
 +
<snip><br>
 +
Migrating existing database yum_available<br>
 +
Migrating existing database yum_installed<br>
 +
Creating database yum_repositories and setting defaults<br>
 +
 +
[root@kiwi db]# ls -la yum_repositories*<br>
 +
-rw-r-----  1 root admin 3207 Apr  9 00:13 yum_repositories<br>
 +
-rw-r-----  1 root admin 4837 Apr  7 19:01 yum_repositories.po<br>
 +
 +
this shows i had other repo's setup<br>
 +
but now have a clean set of db values<br>
 +
 +
expand-template /etc/yum.conf
 +
 +
and check
 +
 +
yum update
    
===Using RPMs===
 
===Using RPMs===

Navigation menu