Archive

Posts Tagged ‘yum’

yum –skip-broken

November 15, 2008 5 comments

I have be working on beating the skip broken functionallty in yum in better shape. The was a lot cases were it has to give up. One of the big problems debugging the code is that,  repo inconsistencies where skip broken is useful, don’t last long and can be hard to reproduce and retest.  So i had been working to make some unit tests in yum,  to reproduce the found issues and make the debug output from skip broken a lot better, so it is easier to see what goes wrong.

The current yum in rawhide (3.2.20) is in very good shape and the upstream 3_2_x branch is even better.

If you run into some situation where ‘–skip-broken’ bails out, then please checkout

http://yum.baseurl.org/wiki/SkipBroken

Categories: Fedora Tags: , ,

Yum Tips & Trick

April 1, 2008 3 comments

Mohd Izhar Firdaus Ismai is have some comments to your post about yum & Friends.

Yum is not slower than Apt, yum does dynamic load of metadata, apt dont, it only refreshes the cache when the user tell it to, so you are comparing apple and oranges.

As the main yumex developer i don’t like statements like ‘Avoid using yumex’ because it might have behaved badly. If you detect any problems the collect documentation and make bugzilla reports, so if there is any problem they cant be solved. This is the way Open Source software evolves.  Behind the scene yumex, pirut, PackageKit (yum backend) and yum-cli all works by using the powerful Yum API to do the real action, so the difference is in the UI and to the level of feature and option each tool give to the user.

it is right you can install both apt & smart in Fedora, but there is some differences,  yum has put safety in a high place, so if there is a problem in the repo of some kind, yum will bail out with an error to not leave the users systems in a broken state, but some of the other package manager have options to try to fixes the issues and it can give strange/dangerous results.

Remember don’t blame the postman for delivering a bad message.

Categories: Fedora, Linux Tags: , ,

Yum speaks native languages

February 8, 2008 11 comments

Yum now speaks native languages.

Localization has been on the Yum todo list for a long, so for i couple of weeks ago i started to make it happen.
Added the pieces of code and makefile magic to build the yum.pot and LANG.po files and adding a lot of _() translations wrappers around the strings to be translated in the yum source. (386 different messages at the moment)

Here is the result, Yum speak danish (Not eating danish, SPEAKING DANISH)

yum-dk.png

I also speak Norwegian by the way.
Now you ask yourself, how do i make yum speak my locale language.
Just go here and pick up yum.pot, rename it to LANG.po and start translating the strings using gtranslator,Kbabel or another translation editor.

http://translate.fedoraproject.org/module/yum#master

When you have done the translation, then make a bugzilla report against yum in the Redhat Bugzilla

Coding is fun

January 10, 2008 Leave a comment

I can be fun to make test cases.

I am creating test cases for the new skip-broken functionality in yum.

Here is an example:


testcase.png
Consol debug output:
Checking deps for GutlessGibbon.noarch 0-1-0 – u
looking for (‘money’, None, (None, None, None)) as a requirement of GutlessGibbon.noarch 0-1-0 – u
looking for (‘nice’, None, (None, None, None)) as a requirement of GutlessGibbon.noarch 0-1-0 – u
looking for (‘features’, None, (None, None, None)) as a requirement of GutlessGibbon.noarch 0-1-0 – u
GutlessGibbon requires: money
Searching pkgSack for dep: money
skipping reposetup, pkgsack exists
Potential match for money from Spaceman – 1-0.noarch
Matched Spaceman – 1-0.noarch to require for money
Building updates object
skipping reposetup, pkgsack exists
skipping reposetup, pkgsack exists
skipping reposetup, pkgsack exists
TSINFO: Marking Spaceman – 1-0.noarch as install for GutlessGibbon
GutlessGibbon requires: nice
Searching pkgSack for dep: nice
skipping reposetup, pkgsack exists
GutlessGibbon requires: features
Searching pkgSack for dep: features
skipping reposetup, pkgsack exists
Checking deps for Spaceman.noarch 0-1-0 – u
Checking deps for GutlessGibbon.noarch 0-1-0 – u
looking for (‘money’, None, (None, None, None)) as a requirement of GutlessGibbon.noarch 0-1-0 – u
looking for (‘nice’, None, (None, None, None)) as a requirement of GutlessGibbon.noarch 0-1-0 – u
looking for (‘features’, None, (None, None, None)) as a requirement of GutlessGibbon.noarch 0-1-0 – u
GutlessGibbon requires: nice
Searching pkgSack for dep: nice
skipping reposetup, pkgsack exists
GutlessGibbon requires: features
Searching pkgSack for dep: features
skipping reposetup, pkgsack exists
Dependency Process ending
GutlessGibbon – 1-0.noarch from TestRepository has depsolving problems
skipping GutlessGibbon – 1-0.noarch from TestRepository because of depsolving problems
skipping reposetup, pkgsack exists
Checking deps for Spaceman.noarch 0-1-0 – u
Dependency Process ending
Skip-broken took 1 rounds

Categories: Fedora, Linux Tags: , ,

Better skip-broken support in yum

December 14, 2007 4 comments

For a while i have been working on making better support for yum to handle packages with dependency problems. The current skip-broken plugin has a lot of problems, so i have worked on building the the skip-broken support into yum, without needing a special plugin.

The first step was to make the yum depsolver collect the packages causing problems while it was depsolving.

The second step was to find a good way to skip the packages causing problems and all the deps they have pull in to the yum transaction.

In the latest couple of months there have been some very nice progress in adding a test suite to yum, so there is a good infrastructure for building test cases for the yum code, this is very important in testing the skip-broken functionality, because it is a good way to simulate all kind of dependency problems and to test if code changes is breaking something.

The new skip-broken code is now checked into the yum git HEAD and will be available in yum 3.2.9.

If you want to test it, you can check out the yum git HEAD and check it out.


git clone http://linux.duke.edu/yum/git/yum.git
cd yum
sudo ./yummain.py --skip-broken some-yum-action

The code conflict with then yum-skip-broken plugin, so it have to be removed if you want to test tje new code

Fedora Rawhide is a nice place to test it, there have been a lot of packages with dep problems lately.

Categories: Misc Tags: , , , ,