• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Check the Size of the Yum Channels in Oracle Linux

by admin

Question: How to find out how large a yum channel repository is, to know how much data the channel will sync to a local yum repository?

To see the actual size of the repository use either the “yum repolist -v” or “yum repoinfo” command.

1. Example for checking the size of latest OL7 yum channel

# yum repoinfo ol7_latest

Loaded plugins: langpacks, ulninfo
Repo-id : ol7_latest/x86_64
Repo-name : Oracle Linux 7Server Latest (x86_64)
Repo-status : enabled
Repo-updated : Fri Jan 25 22:56:45 2019
Repo-pkgs : 8,857
Repo-size : 10 G
Repo-baseurl : http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
Repo-expire : 21,600 second(s) (last: Mon Jan 28 09:34:04 2019)
Repo-excluded: 2,947
Repo-filename: /etc/yum.repos.d/public-yum-ol7.repo

2. Example for checking the size of all enabled yum channels of a OL6 system that was registered to ULN:

# uln-channel --list
ol6_x86_64_UEKR4
ol6_x86_64_latest
# yum repolist -v
Loading "rhnplugin" plugin
Loading "ulninfo" plugin
Loading "refresh-packagekit" plugin
Loading "security" plugin
Config time: 0.035
This system is receiving updates from ULN.
Looking for repo options for [main]
Looking for repo options for [ol6_x86_64_latest]
Repo 'ol6_x86_64_latest' setting option 'enabled' = '1'
Repo 'ol6_x86_64_latest' setting option 'gpgcheck' = '1'
Repo 'ol6_x86_64_latest' setting option 'timeout' = '120'
Looking for repo options for [ol6_x86_64_UEKR4]
Repo 'ol6_x86_64_UEKR4' setting option 'enabled' = '1'
Repo 'ol6_x86_64_UEKR4' setting option 'gpgcheck' = '1'
Repo 'ol6_x86_64_UEKR4' setting option 'timeout' = '120'
Yum Version: 3.2.29
Setting up Package Sacks
pkgsack time: 0.040
Repo-id : ol6_x86_64_UEKR4
Repo-name : Unbreakable Enterprise Kernel Release 4 for Oracle Linux 6 (x86_64)
Repo-updated : Fri Feb 1 05:03:04 2019
Repo-pkgs : 109
Repo-size : 1.2 G . ####
Repo-baseurl : https://linux-update.oracle.com/XMLRPC/GET-REQ/ol6_x86_64_UEKR4
Repo-expire : 21,600 second(s) (last: Sat Feb 2 11:20:25 2019)
Repo-excluded: 33

Repo-id : ol6_x86_64_latest
Repo-name : Oracle Linux 6 Latest (x86_64)
Repo-updated : Thu Jan 31 22:38:28 2019
Repo-pkgs : 8,890
Repo-size : 15 G ###
Repo-baseurl : https://linux-update.oracle.com/XMLRPC/GET-REQ/ol6_x86_64_latest
Repo-expire : 21,600 second(s) (last: Sat Feb 2 11:20:41 2019)
Repo-excluded: 2,558

repolist: 8,999

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, OEL 6, OEL 7

Some more articles you might also be interested in …

  1. scriptreplay: command not found
  2. How to Disable “Predictable Network Interface Device Names” in CentOS/RHEL 7
  3. How to Find and Delete Empty Directories and Files in Linux
  4. How to change hostname in CentOS/RHEL 7
  5. sort Command Examples in Linux
  6. bzegrep: Find extended regular expression patterns in bzip2 compressed files using egrep
  7. What is the purpose of utmp, wtmp and btmp files in Linux
  8. a2enconf Command Examples in Linux
  9. tune2fs Command Examples in Linux
  10. How To Calculate The Memory Reserved By HugePages in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • ctags: Generates an index (or tag) file of language objects found in source files for many popular programming languages
  • csvtool: Utility to filter and extract data from CSV formatted sources
  • csvstat: Print descriptive statistics for all columns in a CSV file
  • csvsql: Generate SQL statements for a CSV file or execute those statements directly on a database

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright