Though the cache is built automatically over time but we also have an option to manually build the cache, so that the future actions are fast & completed quickly. : has security and configuration enhancements like the / Summary : Cron daemon for executing programs at set timesĭescription : Cronie contains the standard UNIX daemon crond that runs / To get details of a specific package, execute ~]$ dnf info cronie Same can be done against a file, we can also use the same command with a file location to get the package name with which the file is associated, sudo dnf provides /var/www/html Example:18) View package information Repo : : Cron daemon for executing programs at set times If we wants to know which package is responsible for getting a particular functionality, like we need to know package name that is associated with ‘crontab’ or with some other command, than we can use the dnf command ‘ provides‘ option in the following manner, ~]$ sudo dnf provides crontabĬronie-1.5.86_64 : Cron daemon for executing programs at set times Is this ok : y Example:17) Check which package provides the required function To use a particular repository for installing a package, run ~]$ sudo dnf install -enablerepo=epel mysqlĮxtra Packages for Enterprise Linux 7 - x86_64 3.9 MB/s | 13 MB 00:03 installed as well as available, run the following command ~]$ dnf list Now, if we only require a list of installed packages on the system, we can get it by executing following command, ~]$ dnf list installedĮxample:15) Show all installed as well as available packages To get list of all available packages from repositories, open terminal & run beneath dnf command ~]$ dnf list available | more Syntax : dnf download package_name ~]$ sudo dnf download samba Use the following command to download package like samba There can some scenarios where we require to download the packages but don’t wish to install. Net-tools.x86_64 : Basic networking ~]$ Example:12) Download (don’t not install) a package Let’s suppose I want to search net-tools package ~]$ sudo dnf search net-tools To look for a particular package from the repositories, execute We can also use ‘groupupdate’ for updating the group packages as well. Syntax: dnf groupremove ‘group_name’ ~]$ sudo dnf groupremove "Development Tools" To remove a complete group of packages from system, run the following dnf command, To install a group, run ~]$ sudo dnf groupinstall "Development Tools" Similar packages are grouped together & can be installed from single command, rather than using separate commands. ………………… Example:9) Installing Group packages Last metadata expiration check: 1:40:19 ago on Tue 10:08:39 AM IST. Use the following to list all group packages ~]$ sudo dnf grouplist To upgrade all system packages, run the following ~]$ sudo dnf upgrade Syntax: dnf update ~]$ sudo dnf update filezilla Example:6) Check for full system updateįor a system wide update check, execute the following command, ~]$ sudo dnf check-update Run the following command to update a single package on the system, Output of above command would be something like below: To remove a package, execute the following from terminal, ~]$ sudo dnf remove ~]$ sudo dnf erase httpd Like yum, we use ‘ install‘ option followed by package name with dnf to install, Let’s suppose we want to install web server package (httpd) ~]$ sudo dnf install httpd If we need to see all the repositories that are either enabled or disabled, we need to run following ~]$ sudo dnf repolist all Virtualbox Fedora 26 - x86_64 - VirtualBox ~]$ Example:2) List all repositories (enabled as well as disabled) *epel Extra Packages for Enterprise Linux 7 - x86_64 11,989 To list all the enabled repositories on the system, run ~]$ sudo dnf repolist The syntax for using DNF command is pretty similar to using YUM, so you will find lots of similarity between the two commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |