Why commands used with sudo takes time to execute?

Solution Verified - Updated -

Issue

  • If a command is used with sudo (for e.g. sudo yum clean all) it takes time to execute.
[21:29][test@server4 ~]$ sudo yum clean all
[sudo] password for test@server4.example.com:
Loaded plugins: package_upload, product-id, search-disabled-repos, subscription-manager
Cleaning repos: production-rhel-x86_64-workstation-7.4 rhel-7-server-rpms 
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
[21:33][test@server4 ~]$ 
  • In the above output it's taking about 4 minutes for the command to execute completely.

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat Enterprise Linux 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In