Archive

Archive for June, 2012

How to list rpm packages from certain repository

June 21st, 2012 No comments

Usually, rpm --queryformat can be used to generate all sorts of rpm package listing. You could, for example, use the vendor tag to separate the packages that are tagged with RPM Fusion from the list of all installed packages (rpm -qa):

$ rpm -qa --queryformat "%{Name}:%{Vendor}\n" | grep -F "RPM Fusion"

Unfortunately, there is no 1:1 mapping between rpm’s vendor tag and the install repository. In some cases, the vendor tag is just slightly altered (upper case letters, etc.) or the tag is completely empty.

And there is obviously no rpm tag for repositories, since rpm itself doesn’t know anything about repositories (you can list all available tags by invoking rpm --querytags). But of course, yum does!
To get a list of packages from the RPM Fusion repository, you can use

$ yum list installed | grep -i fusion

Resources:
http://unix.stackexchange.com/questions/22560/list-all-rpm-packages-installed-from-repo-x
http://www.rpm.org/max-rpm/s1-rpm-query-parts.html

Categories: Uncategorized Tags: , ,

KDE global shortcuts daemon stealing shortcuts (aka Netbeans Ctrl+Shift+I doesn’t work any more)

June 1st, 2012 No comments

If Netbeans’ keyboard shortcut for fixing import statements (or any other shortcut) stops working, it could be the KDE global shortcuts daemon interfering12. Per default, Ctrl+Shift+I is bound to Kopete’s read message function, so if Kopete runs in background, Netbeans doesn’t catch the shortcut. Quick Fix: Close Kopete or simply remove the global shortcut.

To check, if the kdedglobalaccel daemon uses Ctrl+Shift+I, simply use

$ grep -i ctrl+shift+i ~/.kde/share/config/kglobalshortcutsrc
ReadMessage=Ctrl+Shift+I,Ctrl+Shift+I,Read Message

You can either just remove the line from ~/.kde/share/config/kglobalshortcutsrc, use KDE’s System Settings tool (System Settings → Shortcuts and Gestures → Global Keyboard Shortcuts → KDE component: Kopete → Read Message)

ScreenshotSystemSettingsGlobalShortcuts

System Settings: Change "Read Message" to "None" (click for full size image)

or unset the shortcut in Kopete itself (Kopete → Settings → Configure Shortcuts → Read Message)

ScreenshotKopeteShortcuts

Kopete: Change "Read Message" to "None" (click for full size image)

[1] http://netbeans.org/bugzilla/show_bug.cgi?id=117058
[2] http://netbeans.org/bugzilla/show_bug.cgi?id=187776

Categories: Uncategorized Tags: ,