Kinetic theory of inhomogeneous systems