Leandro Dorileo

Dorileo`s web place


There`s a getpass module that takes care about currently logged user.

import getpass
print getpass.getuser()

getuser() will return of the user.here you can read more about.

Sometimes we need to know(or are curious about) the files installed on you system by a specific package. On Debian systens we do:

dpkg -L <package name>

But for Fedora we can`t find the same feature by default, it`s needed an additional package to help on it, lets see:

yum install yum-utils

yum-utils brings some utilities to help manage installed packages, to accomplish our initial goals we ought use repoquery:

repoquery --list <package name>