Package Managers Flashcards
What is the yum command to look for software?
yum search
i.e yum search http
What is the yum command to get information about a software package?
yum info
i.e yum info httpd
What is the yum command to get installed software?
yum list installed
i.e yum list installed wireshark
What is the yum command to get the dependencies for a package?
yum deplist
i.e yum deplist
What is the yum command to remove software?
yum remove
i. e yum remove httpd
* leaves behind dependencies
What is the yum command to remove software including dependencies no longer subsequently needed?
yum autoremove
i.e yum autoremove httpd
What is the command to show the full path of a shell command?
which
i.e which tshark
What is the yum command to get a list of repositories being used by the system?
yum repolist
On red hat based systems, where is repository information saved?
/etc/yum.repos.d
Multiple repo files
What is the command to clean up the local yum database of packages?
yum clean all
What is the yum command to update the system?
yum update
What is the rpm command to install a package?
rpm -i
-v verbose -h progress bar
What is the rpm command to query a package?
rpm -q
-i info
What is the format convention for rpm packages?
packagename-version.architecture
i.e plexmediaserver-1.13.9.5456-ecd600442.x86_64.rpm
What is the rpm command to see what files an rpm installs?
rpm -ql