Yast and locking software (versions)

February 29th, 2008 by Felix-Nicolai Müller

The QT version of Yast is unable to lock software packages for longer than one session.

This is documented here.

Sadly, there is no real fix for this right now. We will have to wait for the developers to finally do something about this as this really is a problem for many users.

This is a workaround:

  1. Open a console
  2. su
  3. touch /etc/zypp/locks (if /etc/touch/zypp/locks does not exist)
  4. echo exact-name-of-package >> /etc/zypp/locks
  5. done

There is another workaround. Use a different package manager like smart.

  1.  Open a console
  2. su
  3. zypper in smart
  4. smart channel –add http://linux01.gwdg.de/~pbleser/files/smart/opensuse-10.3.txt
  5. smart mirror –add http://linux01.gwdg.de/~pbleser/files/smart/mirrors-eu.txt
  6. start using smart instead of zypper / yast

Would be nice to get a usable zypper – as fast as possible. If it is not provided, simply use the best solution for yourself. As of today, this is (in my eyes) normally smart.

Share

Posted in opensuse | 4 Comments »

Yast, sudo and making it not to ask for a root password

February 27th, 2008 by Felix-Nicolai Müller

The sudo modul in yast has got an error which will prevent some users from using a command via sudo without the root password prompt:

This is documented here.

The problem is, that yast will edit /etc/sudoers in the same order that is specified while using the sudo component. So if one adds himself before ALL, the /etc/sudoers will be broken (well, this is not entirely correct, but this is the main problem).

The workaround is, to edit /etc/sudoers using visudo to change the line
“ALL ALL = (ALL) ALL”
to be the first on after
“Defaults targetpw” .

This goes as followed:
1. open a konsole
2. su
3. visudo
4. switch the lines as described above
5. done

Your /etc/sudoers should like something like this after that:

Read the rest of this entry »

Share

Posted in opensuse | No Comments »

« Previous Entries

Personal

Psychology

Pages

Archiv