Listing installed packages using stack