Typo in function add repository key (key-id => key_id)
Added is_installed function to determine if a package is installed. Same behavior like is_file, is_dir and so on.