I wasn’t paying proper attention when adding a repo to yast and need to find the file were the info is saved to delete this.
The problem is that whenever i use yast it comes up with an error code saying that it can’t find the data for the ‘problem’ repo. Have tried zypper rm but that comes up with a similar error advising that the data is in a format that was not expected.
My thinking is to track the file were the yast repo source details are saved, delete this and then just add the repos that i use back. Any ideas?
I wouldn’t go for your option. The repo and package management is quite a complex system, manual interference may bring more trouble.
Please post the exact message, and post the output of
zypper lr -d
‘zypper rm’ is not for removing repos, it’s for packages.
But you should not remove a repo by simply removing its file in /etc/zypp/repos.d, but via YaST (there’s a module for repository management) oy using zypper. The syntax for zypper is
zypper rr #|URL|alias
[rr = remove repo]
…so for example in case you’d like to remove the KDE3.5 repo:
zypper rr 5
## or
zypper rr http://download.opensuse.org/repositories/KDE%3a/KDE3/openSUSE_Factory/
## or
zypper rr kde_3.5
> But you should not remove a repo by simply removing its file in
> /etc/zypp/repos.d, but via YaST (there’s a module for repository
> management) oy using zypper.
it may seem that zypper ar / lr -d does the same thing, add or remove
entries from the repos.d/ directory. but there’s at least one thing more
they do: add a log entry, which may come very helpful in the future –
when you’re wondering why things don’t work as expected, or what exactly
you removed. you may very well forget deleting those files, but those log
entries remain.
it was the repo.d file that was damaged due to me making a mess-up adding a repo to it and the problem repo was not being listed in yast or zypper (so couldn’t be removed from either in the normal way).
deleting everything in etc/zypper wiped everything - so did the job