PDA

View Full Version : Yum Extender 0.31 Released:


mit
12th February 2005, 08:21 AM
Yum Extender 0.31 Releashed:

http://linux.rasmil.dk/mambo/index.php?option=com_content&task=view&id=52&Itemid=41

How-to use:
http://linux.rasmil.dk/mambo/index.php?option=com_content&task=view&id=56&Itemid=41

Screenshoots:
http://linux.rasmil.dk/gfx/yumex-31/

New Features:

* Better filter function
- Case insensitive.
- work on both names & summery
- Added filter entries to install/update/remove page.
* Package descriptions
* Http proxy support. (Not testet, I dont have a proxy server)
* Preference Dialog.
* Repository Install button on repository Page

Fixes:

* Install/remove/update fails after yum command has been run.
- AttributeError: YumWrapper instance has no attribute 'rpmdb'
* Install/remove/update fails on rerun after failed install/remove/update command.
- AttributeError: YumWrapper instance has no attribute 'rpmdb'
* Dialog for 'Is this ok [y/n]' fails.
- NameError: global name 'warning_box' is not defined
* 'yum update' without parameters is not working
- Could not find update match for

ilja
12th February 2005, 08:55 AM
moved to news.

greatscot
12th February 2005, 10:31 AM

mit: Thank you for the update. Does yumex still rely on yum?

mit
12th February 2005, 11:56 AM
Yes, its a GUI build on top of Yum

BandC
12th February 2005, 07:03 PM
Thanks for the update. Can't help but notice it: it's not summery it's summary :D

mit
13th February 2005, 07:41 AM
Thanks for the update. Can't help but notice it: it's not summery it's summary :D

Thanks, I will fixit.

cybrjackle
13th February 2005, 06:01 PM
Maybe I missed something (tired) but when I choose yum extender from the Menu, I don't remember entering my root passwd and I just installed "aide" as my user?

$ rpm -qa | grep aide
aide-0.10-1

Can someone else verify if I just need to go to bed or does yumextender have a sudo wrapper or something else?

cybrjackle
13th February 2005, 10:06 PM
Just so were clear, I was smoking crack and it does ask for root :D

nsl_94
16th February 2005, 01:55 AM
Hello.

I've downloaded Yum Extender tonight, but I can't use it... it always gives the following error in the Output tab

--> Running transaction check
Traceback (most recent call last):
File "yumex.py", line 76, in on_button
File "yumex.py", line 436, in update_packages
File "yumex.py", line 318, in get_confimation
File "yumex.py", line 327, in get_package_list
TypeError: unpack non-sequence

It never does the updates.

I've also uninstalled it, got it again from the internet, but it gives the same error.

Can someone help me in this? I'me a newbie using fedora.
Thank you
Nuno

mit
16th February 2005, 05:25 PM
Hello.

I've downloaded Yum Extender tonight, but I can't use it... it always gives the following error in the Output tab

--> Running transaction check
Traceback (most recent call last):
File "yumex.py", line 76, in on_button
File "yumex.py", line 436, in update_packages
File "yumex.py", line 318, in get_confimation
File "yumex.py", line 327, in get_package_list
TypeError: unpack non-sequence

It never does the updates.

I've also uninstalled it, got it again from the internet, but it gives the same error.

Can someone help me in this? I'me a newbie using fedora.
Thank you
Nuno


I have got some error report about, but i cant recreate the error.

Are you running a AMD X86_64 ???.

Are you running Gnome or KDE. ??

What version of yum do you have (rpm -q yum) ??

nsl_94
16th February 2005, 06:53 PM
Hello Again.

In answer to your questions,

- I'm not running a AMD X86_64 - My processor is an Intel Centrino 1.6 Ghz
- I'm using GNOME
- My yum version is - yum-2.1.13-0.fc3

Thank you again
Nuno

oll
17th February 2005, 03:57 AM
This is geting better !!!!!!!! mit keep it up!!! it's a good job, I like it!!!

oll

mit
17th February 2005, 07:14 AM
Hello Again.

In answer to your questions,

- I'm not running a AMD X86_64 - My processor is an Intel Centrino 1.6 Ghz
- I'm using GNOME
- My yum version is - yum-2.1.13-0.fc3

Thank you again
Nuno

Are you sure you are running yum-2.1.13-0.fc3, the lastest one in the fedora updates is yum-2.1.12-0.
There is a yum-2.1.13-0.fc3 is testing but it has not been released yet.

Dont update you systen from updates-testing for normal use.
Try downgrade yum to yum-2.1.12, And see if the error is still there.


su -
password:
wget http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/i386/yum-2.1.12-0.fc3.noarch.rpm
rpm -e yum
rpm -Uvh yum-2.1.12-0.fc3.noarch.rpm

Stone321
17th February 2005, 03:30 PM
Sorry if i ofended you . I starded useing debian 80 % of the time and there is synaptic there that i find unpractile compared to apt . I gess it s the same thing with this. But never hurts with extra apps. > 4 gigs is my fedora on now.

so again sorry,

ilja
17th February 2005, 05:17 PM
$apt-get install YumExtender
bash:why?
$i surender
What is a troll (http://en.wikipedia.org/wiki/Internet_troll) ? :D
You are such a great exemplar of the species.

Maners
17th February 2005, 07:13 PM
Hello

I have modified yumex to display architecture on the packages lists because if one uses x86_64 there might be doubled packages (for i386 and for x86_64). I also made the columns resizable because it was bothering me that I couldn't do that :-). Also changed "Summery" to "Summary" :)

Here is a diff:

--- ./yumex.py 2005-02-11 07:08:04.000000000 -0500
+++ ./yumex.py 2005-02-17 13:23:47.000000000 -0500
@@ -506,7 +506,7 @@

# Repository View
self.repoView = self.get_widget("viewRepo")
- self.repoModel = self.setup_view(self.repoView,"Repository","File","","")
+ self.repoModel = self.setup_view(self.repoView,"Repository","File","","","")
# Install View
self.installView = self.get_widget("viewInstall")
self.installView.connect("cursor_changed",self.row_handler,self.instDesc)
@@ -568,9 +568,9 @@
context_id = self.status.get_context_id("Status")
message_id = self.status.push(context_id, text)

- def setup_view(self,view,col2hdr="Package",col3hdr="Ver",col4hdr="Summery",col5hdr="Repo"):
+ def setup_view(self,view,col2hdr="Package",col3hdr="Ver",col4hdr="Summary",col5hdr="Repo",col6hdr="Architecture"):
""" Create Notebook list for single page """
- model = gtk.ListStore('gboolean',gobject.TYPE_STRING,gobje ct.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_ST RING)
+ model = gtk.ListStore('gboolean',gobject.TYPE_STRING,gobje ct.TYPE_STRING,gobject.TYPE_STRING,gobject.TYPE_ST RING,gobject.TYPE_STRING)
view.set_model(model)
cell1 = gtk.CellRendererToggle()
cell1.set_property('activatable', True)
@@ -579,16 +579,24 @@
view.append_column(column1)
cell2 = gtk.CellRendererText()
column2 = gtk.TreeViewColumn(col2hdr, cell2, text=1)
+ column2.set_resizable(gtk.TRUE)
view.append_column(column2)
cell3 = gtk.CellRendererText()
column3 = gtk.TreeViewColumn(col3hdr, cell3, text=2)
+ column3.set_resizable(gtk.TRUE)
view.append_column(column3)
cell4 = gtk.CellRendererText()
column4 = gtk.TreeViewColumn(col4hdr, cell4, text=3)
+ column4.set_resizable(gtk.TRUE)
view.append_column(column4)
cell5 = gtk.CellRendererText()
column5 = gtk.TreeViewColumn(col5hdr, cell5, text=4)
+ column5.set_resizable(gtk.TRUE)
view.append_column(column5)
+ cell6 = gtk.CellRendererText()
+ column6 = gtk.TreeViewColumn(col6hdr, cell6, text=5)
+ column6.set_resizable(gtk.TRUE)
+ view.append_column(column6)
cell1.connect("toggled", self.on_notebook_toggled, (model, column1))
return model

@@ -616,7 +624,7 @@
repos = self.repo.get_names_sorted()
data = []
for r in repos:
- el = (False,r,self.repo.get_repo_filename(r),"","")
+ el = (False,r,self.repo.get_repo_filename(r),"","","")
data = data + [el]
self.populate_view(self.repoModel,data)

@@ -630,8 +638,9 @@
def populate_view(self,model,data):
""" Populate a Notebook page with data """
model.clear()
- for col0,col1,col2,col3,col4 in data:
+ for col0,col1,col2,col3,col4,col5 in data:
iter = model.append()
+ model.set_value(iter, 5,col5)
model.set_value(iter, 4,col4)
model.set_value(iter, 3,col3)
model.set_value(iter, 2,col2)
@@ -668,7 +677,7 @@
ver = pkg.printVer()
summery = pkg.returnSimple('summary').splitlines()[0]
#info = "%s (%s) - %s " % (pkg.repoid,ver,summery)
- el = (False,pkg.name,ver,summery,pkg.repoid)
+ el = (False,pkg.name,ver,summery,pkg.repoid,pkg.arch)
data = data + [el]
else:
flt = self.nameFilter.upper()
@@ -679,7 +688,7 @@
if key1.find(flt) <> -1 or key2.find(flt) <> -1 :
ver = pkg.printVer()
#info = "%s (%s) - %s " % (pkg.repoid,ver,summery)
- el = (False,pkg.name,ver,summery,pkg.repoid)
+ el = (False,pkg.name,ver,summery,pkg.repoid,pkg.arch)
data = data + [el]
data.sort()
return data
@@ -719,7 +728,3 @@
disable = ["base"]
mainApp = MainApplication(enable,disable)
main()
-
-
-
-

mit
18th February 2005, 06:52 AM
Thanks Maners !!!
I will add you changes to the next release.

PeTzZz
18th February 2005, 09:00 AM
Is it possible to implement Cancel option so I can stop "yum" doing something? For example if one program that I want to remove has so many dependencies that yum wants to remove (yum searches and searches) then I consider not to remove it (like old kernels) and would want to stop.

The other thing is that if I change repository info and the repository path I enter is wrong, Yum Extender will crash if it refreshes the next time and it is not possible to load Yum Extender, because it refreshes every start. I changed the path to the right path manually and it was ok again.

The file menu - isn't Quit always below everything? It would be more orginised if it were below everything, because it is everywhere like this and is more intuitive.

By the way Yum Extender has improved a lot to me. The description info is just great! It would be nice if there would be a checkbox if to search descriptions also... The search box is also very useful.

I am using Yum Extender more and more. I use terminal for only quick installs etc.

Thank you!

Trol
18th February 2005, 05:45 PM
I guess this won't work on FC2?

Maners
18th February 2005, 06:11 PM
I guess this won't work on FC2?

Why not?. As long as you have good versions of yum and python libraries installed (and it seems to be inclded in deafult install) it should work ok on any yum-based distribution. You may only need to choose correct repositories for you (I guess there is no extras for FC2, but dag and freshrpms should work well)

mit
19th February 2005, 11:08 AM
Is it possible to implement Cancel option so I can stop "yum" doing something? For example if one program that I want to remove has so many dependencies that yum wants to remove (yum searches and searches) then I consider not to remove it (like old kernels) and would want to stop.
I will look into this


The other thing is that if I change repository info and the repository path I enter is wrong, Yum Extender will crash if it refreshes the next time and it is not possible to load Yum Extender, because it refreshes every start. I changed the path to the right path manually and it was ok again.
You can edit /etc/yumex.conf and set autorefresh=0, then you can start yumex without autorefresh.


The file menu - isn't Quit always below everything? It would be more orginised if it were below everything, because it is everywhere like this and is more intuitive.

You are right , i will move it down



By the way Yum Extender has improved a lot to me. The description info is just great! It would be nice if there would be a checkbox if to search descriptions also... The search box is also very useful.

I am using Yum Extender more and more. I use terminal for only quick installs etc.

Thank you!

I wil put it on my todo list.

mit
19th February 2005, 11:10 AM
I guess this won't work on FC2?

If you have a yum 2.1.x installed on FC2, It might work, but it has not beeb tested.

PeTzZz
19th February 2005, 11:20 AM
You can edit /etc/yumex.conf and set autorefresh=0, then you can start yumex without autorefresh.
It is a good tip, but isn't it more user friendly if a user wrongly changes a repository's path, the yumex will not crash but report a error that the path was wrong or something like that. By default the autorefresh is enabled and it is good, but this way normal user cannot open yumex and he/she may give up, because he/she doesn't search for help in many cases.

mit
20th February 2005, 11:29 AM
It is a good tip, but isn't it more user friendly if a user wrongly changes a repository's path, the yumex will not crash but report a error that the path was wrong or something like that. By default the autorefresh is enabled and it is good, but this way normal user cannot open yumex and he/she may give up, because he/she doesn't search for help in many cases.
Its the yum code that exits, and teminates yumex, because yum is coded as a console application is terminates the whole application is some error occours.

nsl_94
21st February 2005, 12:26 PM
Hello Mit.

I'm sorry for taking so long to answer, but i've been out and it was impossible for me to test what you said to me.

It is working :) As you said, I've downgraded "Yum" and everything is working now. I still don't understand how the version of yum was updated. I didn't check any of the repositories with "testing or unstable" versions... but never mind... It is working now, and that's what matters.

Thank you for all the help.

See you soon.

Nuno

PeTzZz
22nd February 2005, 04:22 PM
I would want to report one minor "bug". There was one update. I checked it and pressed Update. The update was installed and the item was cleared from the update package list, but the description of the item stayed in the description box.

kwarrior
23rd February 2005, 05:10 AM
I have a major problem with Yum Extender. I installed it and then tried to run it. The window appears for a second then immediately crashes. If it helps, I'm using Fedora Core 3 with kernel 2.6.10-1.766, GNOME, and yum 2.1.12-0. How do I fix this? Thanks.

mit
24th February 2005, 08:22 AM
I have a major problem with Yum Extender. I installed it and then tried to run it. The window appears for a second then immediately crashes. If it helps, I'm using Fedora Core 3 with kernel 2.6.10-1.766, GNOME, and yum 2.1.12-0. How do I fix this? Thanks.

Try open a terminal and:

su -
password:
yumex


What errors do you get ??

mit
24th February 2005, 08:23 AM
I would want to report one minor "bug". There was one update. I checked it and pressed Update. The update was installed and the item was cleared from the update package list, but the description of the item stayed in the description box.

I have put it on my error list.

svenkatesan
24th February 2005, 02:11 PM
Hi
I am using FC3.
I hope I installed yum extender because I could see it at application----sys tools---yum extender.
The problem is when I click on that nothing happens(both user & root),but on right click,its totally grayed out,I can't change or select anything.Pl. see the attached snap shot.
Pl. help
Thanks

the_profiler
26th February 2005, 01:44 AM
Traceback (most recent call last):
File "yumex.py", line 67, in on_button
File "yumex.py", line 396, in update_packages
File "yumWrapper.py", line 335, in update
File "yumWrapper.py", line 376, in resolve_dep
File "/usr/lib/python2.3/site-packages/yum/__init__.py", line 219, in buildTransaction
(rescode, restring) = self.resolveDeps()
File "/usr/lib/python2.3/site-packages/yum/depsolve.py", line 148, in resolveDeps
self.populateTs(test=1)
File "/usr/lib/python2.3/site-packages/yum/depsolve.py", line 88, in populateTs
for te in self.ts:
AttributeError: YumWrapper instance has no attribute 'ts'

can somebody tell me what all of this stuff means? is it 'fatal' ? needs upgrade? quickfix?

thanks. :confused:

mit
26th February 2005, 08:23 AM
Hi
I am using FC3.
I hope I installed yum extender because I could see it at application----sys tools---yum extender.
The problem is when I click on that nothing happens(both user & root),but on right click,its totally grayed out,I can't change or select anything.Pl. see the attached snap shot.
Pl. help
Thanks

Have you tried running
yumex
i a console as root.

svenkatesan
1st March 2005, 01:33 AM
Hi Mit
I tried from console as root.
The yum ext. box open up empty.This is being there for long time.Do I need to do some editing in yum.conf?
Thanks

mit
2nd March 2005, 07:23 AM
Hi Mit
I tried from console as root.
The yum ext. box open up empty.This is being there for long time.Do I need to do some editing in yum.conf?
Thanks

When Yum Extender startes, it starts to load yum metadata from the enabled repositories.
If the repository not is responding it can take some time to timeout. And in this period Yum Extender Gui are not refreshed. The GUI is only updated when something is written to the output window.

You can edit /etc/yumex.conf and set autorefresh=0, and start yumex again, now it will start without collecting yum metadata. This give you the posibility to select different repositories before the yum metadata is collected.
You try using another mirror for the base & updates-released repositories.

svenkatesan
2nd March 2005, 01:52 PM
Hi Mit
Your trick works.
Thanks a lot.
Bye

ZScott
6th March 2005, 01:53 AM
I was having problems with Maners diff in trying to patch yumex.py

Finally saw what was wrong.

Could be my browswer (FireFox), but in the list box Maners has, there are spaces in the model lines in the 568,9 section.

It's showing up as: gobje ct.TYPE_STRING and gobject.TYPE_ST RING)

mit
7th March 2005, 05:10 PM
I was having problems with Maners diff in trying to patch yumex.py

Finally saw what was wrong.

Could be my browswer (FireFox), but in the list box Maners has, there are spaces in the model lines in the 568,9 section.

It's showing up as: gobje ct.TYPE_STRING and gobject.TYPE_ST RING)

The next release of Yum Extender have Maners patches included an much more, it will be released very soon.

Finalzone
10th March 2005, 05:48 PM
I recently updated yum to version 2.2.0.(official) A big improvment on this version is the speed. The downside is yum extender will crash when it will attempt to do a transaction from either install and update. Here is the reproduction:


Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package xorg-x11-deprecated-libs-devel.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-twm.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11.i386 0:6.8.2-7 set to be updated
---> Downloading header for fonts-xorg-base to pack into transaction set.
fonts-xorg-base-6.8.1.1-1 100% |=========================| 54 kB 00:00
---> Package fonts-xorg-base.noarch 0:6.8.1.1-1 set to be updated
---> Package xorg-x11-xdm.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-xauth.i386 0:6.8.2-7 set to be updated
---> Downloading header for xorg-x11-Mesa-libGL to pack into transaction set.
xorg-x11-Mesa-libGL-6.8.2 100% |=========================| 243 kB 00:01
---> Package xorg-x11-Mesa-libGL.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-deprecated-libs.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-devel.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-tools.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-Mesa-libGLU.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-libs.i386 0:6.8.2-7 set to be updated
---> Downloading header for fonts-xorg-100dpi to pack into transaction set.
fonts-xorg-100dpi-6.8.1.1 100% |=========================| 49 kB 00:00
---> Package fonts-xorg-100dpi.noarch 0:6.8.1.1-1 set to be updated
---> Package xorg-x11-xfs.i386 0:6.8.2-7 set to be updated
---> Package xorg-x11-font-utils.i386 0:6.8.2-7 set to be updated
---> Downloading header for fonts-xorg-75dpi to pack into transaction set.
fonts-xorg-75dpi-6.8.1.1- 100% |=========================| 49 kB 00:00
---> Package fonts-xorg-75dpi.noarch 0:6.8.1.1-1 set to be updated
--> Running transaction check
Traceback (most recent call last):
File "yumex.py", line 76, in on_button
File "yumex.py", line 436, in update_packages
File "yumex.py", line 318, in get_confimation
File "yumex.py", line 327, in get_package_list
TypeError: unpack non-sequence

mit
11th March 2005, 03:08 PM
Next version of Yum Extender will work with yum 2.1.13 & 2.2.0, It will be released very soon

the_profiler
12th March 2005, 04:15 AM
Hello.
I've downloaded Yum Extender tonight, but I can't use it... it always gives the following error in the Output tab
--> Running transaction check
Traceback (most recent call last):
File "yumex.py", line 76, in on_button
File "yumex.py", line 436, in update_packages
File "yumex.py", line 318, in get_confimation
File "yumex.py", line 327, in get_package_list
TypeError: unpack non-sequence


I had this problem too.. i think i had after upgrading yum to 2.2.0 ?
so.. i downgraded my yum to 2.1-12.. and everything was back to normal.. got to be weird since yumex/repos says that yum2.2.0 is already out of the 'testing/development' stage..

Finalzone
12th March 2005, 06:53 AM
That means yum extended 0.31 is not suitable for yum 2.2.0. Mit is aware of that issue and he is currently working to bring compatibilty for bout yum 2.1.2 and 2.2.0.

the_profiler
13th March 2005, 07:15 AM
and that's why one hell of the reasons why i like Linux, you can downgrade/upgrade almost everythin PLUS the various supporting communities of developers out there just like the ones who made yumex. :p

the_profiler
2nd April 2005, 04:22 AM
so it is safe to upgrade my kernel by just using yumex? (upgrade to 2.6-10?)

Finalzone
2nd April 2005, 05:07 AM
You mean installing kernel? If so, yes