Sponsored Content
Full Discussion: Yum is unusable
Operating Systems Linux Red Hat Yum is unusable Post 302554707 by cokedude on Monday 12th of September 2011 08:02:56 PM
Old 09-12-2011
Quote:
Originally Posted by fpmurphy
It is a really bad idea to remove all your repo information. You then will not be able to install any additional packages.

if you deleted all the files in /etc/yum.repos.d as suggested by bartus11 and try to install any package, you will get a message that there are no enabled repos until you recreate at least one repo definition and enable that repo. At a minimum, you will need to re-install the repo files for the particular version of Red Hat that you are on.
Thats what I did to make it unusable. I believe this was the culprit.

Code:
$ sudo wget -P /etc/yum.repos.d/ http://repos.fedorapeople.org/repos/spot/firefox4/fedora-firefox4.repo
--2011-09-12 18:56:06--  http://repos.fedorapeople.org/repos/spot/firefox4/fedora-firefox4.repo
Resolving repos.fedorapeople.org... 85.236.55.7
Connecting to repos.fedorapeople.org|85.236.55.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 208 [text/plain]
Saving to: “/etc/yum.repos.d/fedora-firefox4.repo”

100%[===================================>] 208         --.-K/s   in 0s      

2011-09-12 18:56:28 (9.66 MB/s) - “/etc/yum.repos.d/fedora-firefox4.repo” saved [208/208]

$ sudo yum install firefox4
Loaded plugins: langpacks, presto, refresh-packagekit
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora-firefox4. Please verify its path and try again

This happened no matter what package I tried to install.

Code:
 sudo yum install jre
[sudo] password for bob: 
Loaded plugins: langpacks, presto, refresh-packagekit
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found : http://repos.fedorapeople.org/repos/spot/firefox4/fedora-15/i386/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora-firefox4. Please verify its path and try again

I added my repos back from a fedora live cd.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

2. Red Hat

yum problem

hi i am not able to do yum update in centos5 i was not able to use yum at all.i am getting an like this. #yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Update Process No Packages marked for Update please help me what i have missed (6 Replies)
Discussion started by: praneel2k
6 Replies

3. UNIX for Advanced & Expert Users

yum issue

Hi Guys, I am trying install mysql.i386 with yum... But unfortunately I am getting error as listed below: # yum install mysql.i386 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? ... (2 Replies)
Discussion started by: mahesh_raghu
2 Replies

4. Solaris

Removing Dead Paths And Unusable Path Solaris 9

Hi, One of our Solaris servers was peviously zoned and connected to 2 seperate arrays, one HP and the other EMC. The server is now only connected to the EMC. The sever has x2 single port HBA's. When running cfgadm I see the following: root@qwicprod /dev/rdsk]# cfgadm -al Ap_Id Type... (6 Replies)
Discussion started by: jamba1
6 Replies

5. UNIX for Advanced & Expert Users

yum provides methods

What is the difference between these yum provides and whatprovides methods? I know provides and whatprovides give the same results, but different methods of */ and \* give different results. Also whether you put */ and \* in front of the string or behind the string give different results. I have... (0 Replies)
Discussion started by: cokedude
0 Replies

6. UNIX for Dummies Questions & Answers

Trying to install using YUM

Hi, working on CentOS 5.7 64 bit. I need to install syslog-ng. First I downloaded syslog-ng RPM. When I install I get many dependencies error messages. rpm -ivh syslog-ng-3.3.3-1.mga2.x86_64.rpm warning: syslog-ng-3.3.3-1.mga2.x86_64.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID... (2 Replies)
Discussion started by: samnyc
2 Replies

7. Red Hat

help with YUM

Hi All, Just installed new Redhat server. I am trying to do rhn_register. I get this error message. Fatal error: The SSL certificate failed verification. Any one ran into this error. Please let me know. I do have internet connection- ping www.google.com PING... (1 Reply)
Discussion started by: samnyc
1 Replies

8. UNIX and Linux Applications

yum provides help

Is there a reason why yum provide can't find libquazip? I did this. yum whatprovides */libquazip A quick google search told me it was in quazip and libquazip. RPM resource libquazip.so.1 (1 Reply)
Discussion started by: cokedude
1 Replies

9. Linux

Need help on YUM

HI, First I'll use yum check-update to check any updates. Q1: How can I know that how much space needed to update all packages listed by yum check-update command? Q2: How can I list kernel related packages? TIA (2 Replies)
Discussion started by: Sumanthsv
2 Replies

10. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies
native::Repos(3)					User Contributed Perl Documentation					  native::Repos(3)

NAME
SVN::Repos - Subversion repository functions SYNOPSIS
use SVN::Core; use SVN::Repos; use SVN::Fs; my $repos = SVN::Repos::open('/path/to/repos'); print $repos->fs()->youngest_rev; DESCRIPTION
SVN::Repos wraps the object-oriented "svn_repos_t" functions, providing access to a Subversion repository on the local filesystem. CONSTRUCTORS SVN::Repos::open($path) This function opens an existing repository, and returns an "SVN::Repos" object. create($path, undef, undef, $config, $fs_config) This function creates a new repository, and returns an "SVN::Repos" object. METHODS $repos->dump_fs($dump_fh, $feedback_fh, $start_rev, $end_rev, $incremental, $cancel_func, $cancel_baton) $repos->dump_fs2($dump_fh, $feedback_fh, $start_rev, $end_rev, $incremental, $deltify, $cancel_func, $cancel_baton) Create a dump file of the repository from revision $start_rev to $end_rev , store it into the filehandle $dump_fh, and write feedback on the progress of the operation to filehandle $feedback_fh. If $incremental is TRUE, the first revision dumped will be a diff against the previous revision (usually it looks like a full dump of the tree). If $use_deltas is TRUE, output only node properties which have changed relative to the previous contents, and output text contents as svndiff data against the previous contents. Regardless of how this flag is set, the first revision of a non-incremental dump will be done with full plain text. A dump with @a use_deltas set cannot be loaded by Subversion 1.0.x. According to svn_repos.h, the $cancel_func is a function that is called periodically and given $cancel_baton as a parameter to determine whether the client wishes to cancel the dump. You must supply "undef" at the very least. Example: use SVN::Core; use SVN::Repos; my $repos = SVN::Repos::open ('/repo/sandbox'); open my $fh, ">/tmp/tmp.dump" or die "Cannot open file: $! "; my $start_rev = 10; my $end_rev = 20; my $incremental = 1; my $deltify = 1; $repos->dump_fs2($fh, *STDOUT, # Dump file => $fh, Feedback => STDOUT $start_rev, $end_rev, # Revision Range $incremental, $deltify, # Options undef, undef); # Cancel Function close $fh; $repos->load_fs($dumpfile_fh, $feedback_fh, $uuid_action, $parent_dir, $cancel_func, $cancel_baton); $repos->load_fs2($dumpfile_fh, $feedback_fh, $uuid_action, $parent_dir, $use_pre_commit_hook, $use_post_commit_hook, $cancel_func, $cancel_baton); Loads a dumpfile specified by the $dumpfile_fh filehandle into the repository. If the dumpstream contains copy history that is unavailable in the repository, an error will be thrown. The repository's UUID will be updated iff the dumpstream contains a UUID and $uuid_action is not equal to $SVN::Repos::load_uuid_ignore and either the repository contains no revisions or $uuid_action is equal to $SVN::Repos::load_uuid_force. If the dumpstream contains no UUID, then $uuid_action is ignored and the repository UUID is not touched. If $parent_dir is not null, then the parser will reparent all the loaded nodes, from root to @a parent_dir. The directory $parent_dir must be an existing directory in the repository. If $use_pre_commit_hook is set, call the repository's pre-commit hook before committing each loaded revision. If $use_post_commit_hook is set, call the repository's post-commit hook after committing each loaded revision. If $cancel_func is not NULL, it is called periodically with $cancel_baton as argument to see if the client wishes to cancel the load. You must at least provide undef for these parameters for the method call to work. Example: use SVN::Core; use SVN::Repos; my $repos = SVN::Repos::open ('/repo/test_repo'); open my $fh, "/repo/sandbox.dump" or die "Cannot open file: $! "; my $parent_dir = '/'; my $use_pre_commit_hook = 0; my $use_post_commit_hook = 0; $repos->load_fs2($fh, *STDOUT, $SVN::Repos::load_uuid_ignore, # Ignore uuid $parent_dir, $use_pre_commit_hook, # Use pre-commit hook? $use_post_commit_hook, # Use post-commit hook? undef, undef); close $fh; $repos->fs() Returns the "SVN::Fs" object for this repository. $repos->get_logs([$path, ...], $start, $end, $discover_changed_paths, $strict_node_history, $receiver) Iterates over all the revisions that affect the list of paths passed as the first parameter, starting at $start, and ending at $end. $receiver is called for each change. The arguments to $receiver are: $self The "SVN::Repos" object. $paths "undef" if $discover_changed_paths is false. Otherwise, contains a hash of paths that have changed in this revision. $rev The revision this change occured in. $date The date and time the revision occured. $msg The log message associated with this revision. $pool An "SVN::Pool" object which may be used in the function. If $strict_node_history is true then copies will not be traversed. ADDITIONAL METHODS The following methods work, but are not currently documented in this file. Please consult the svn_repos.h section in the Subversion API for more details. $repos->get_commit_editor(...) $repos->get_commit_editor2(...) $repos->path(...) $repos->db_env(...) $repos->lock_dir(...) $repos->db_lockfile(...) $repos->hook_dir(...) $repos->start_commit_hook(...) $repos->pre_commit_hook(...) $repos->post_commit_hook(...) $repos->pre_revprop_change(...) $repos->post_revprop_change(...) $repos->dated_revision(...) $repos->fs_commit_txn(...) $repos->fs_being_txn_for_commit(...) $repos->fs_being_txn_for_update(...) $repos->fs_change_rev_prop(...) $repos->node_editor(...) $repos->dump_fs(...) $repos->load_fs(...) $repos->get_fs_build_parser(...) AUTHORS
Chia-liang Kao <clkao@clkao.org> COPYRIGHT
Copyright (c) 2003-2006 CollabNet. All rights reserved. This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at http://subversion.tigris.org/license-1.html. If newer versions of this license are posted there, you may use a newer version instead, at your option. This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history and logs, available at http://subversion.tigris.org/. perl v5.10.0 2008-03-17 native::Repos(3)
All times are GMT -4. The time now is 07:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy