crossz

Archive for the ‘fedora’ Category

HOWTO: packagekit to check update per login

In fedora, howto on December 4, 2008 at 9:27 pm

PackageKit only checks once per the update interval, by default once every day.
It does not check on every desktop login.

You can change this behaviour by changing
/apps/gnome-packagekit/force_

get_updates_login to TRUE in gconf-editor. The
description of this key is: “Get the update list when the session starts, even
if not scheduled to. This ensures the user has up to date and valid data in the
tray at startup.”

HOWTO: TAB TO AUTOCOMPLETE COMMAND OPTIONS

In fedora, howto, linux on October 19, 2008 at 12:53 am

yum install bash-completion

Now you will get the ability to use TAB to autocomplete your command and COMMAND OPTIONS.

HOWTO: equivalent yum option to apt-get autoremove

In fedora, howto, linux on October 16, 2008 at 10:38 pm

To remove packages that has been installed as dependencies for the package you are removing if they are only needed for that particular package.

a yum plugin must be installed. Otherwise, yum doesn’t provide the capability.

yum install yum-remove-with-leaves

Now yum will automatically have the same function as apt-get autoremove.

================
more:
yum-changelog is a Yum plugin for viewing package changelogs before/after updating.

Install yum-changelog via:
# yum install yum-changelog

How to use yum-changelog:
# yum update ktechlab –changelog
Loading “changelog” plugin
Loading “installonlyn” plugin
Setting up Update Process
Setting up repositories
[..]
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Package ktechlab.i386 0:0.3-6.fc6 set to be updated
–> Running transaction check

Changes in packages about to be updated:

ktechlab – 0.3-6.fc6.i386
* Wed Nov 22 23:00:00 2006 Chitlesh Goorah – 0.3-6
- Rebuilt due to new gpsim-devel release

By default, this plugin will show the changelogs before the updates. However if you want to make it echo those changelogs after the updates, replace when=pre by when=post in the file /etc/yum/pluginconf.d/changelog.conf

HOWTO: yum equivalent function with apt-get

In fedora, howto, linux on October 16, 2008 at 2:39 am

1. Find and review “lost” packages

You can find orphaned packages (ie packages not in the repositories anymore) with the tool package-cleanup from the yum-utils package: yum install yum-utils; package-cleanup --orphans.
Old packages with a failing “%postun” script will remain partly
installed. Remove them with rpm -e package-name-and-version. It’s often
helpful to run this command after the update, too.

But here what ‘package-cleanup –orphans’ found out is the ‘obsolete’ ones in ubuntu words. Namely installed not from repositories.

2. Find yum install or update history

/var/log/yum.log

3. Find orphan packages
sudo package-cleanup –orphans

Note: Here ‘package-cleanup’ must run with sudo or su, otherwise lots of packages will be considered as orphans because of normal users don’t know the relationship between packages and repositories.