Product SiteDocumentation Site

6.7.3. Usage examples

List updates with package sizes less than 1MB:
$ yum --filter-package-sizes=-1m check-update
Loaded plugins: aliases, filter-data, presto, refresh-packagekit 
_local                                               | 3.0 kB     00:00 
_local/primary_db                                    | 306 kB     00:00
fedora                                               | 4.3 kB     00:00
fedora/primary_db                                    |  14 MB     01:58 
fedora-chromium                                      | 3.0 kB     00:00 
fedora-chromium/primary_db                           |  12 kB     00:00 
updates                                              | 4.7 kB     00:00 
updates/primary_db                                   | 3.3 MB     00:29 
Limiting package lists to filtered ones
Left with 1 of 2 packages, after filters applied
selinux-policy.noarch                      3.9.7-18.fc14             _local 
selinux-policy-targeted.noarch             3.9.7-18.fc14             updates
Apply updates Tim Waugh has provided:
$ yum --filter-committers="Tim Waugh *" update
...
Limiting package lists to filtered ones
Left with 6 (+0 related) of 18 packages, after filters applied
...
Dependencies Resolved

===============================================================================
Package                   Arch   Version        Repository Size
===============================================================================
Updating:
 system-config-printer          x86_64     1.1.16-8.fc12     updates     434 k
 system-config-printer-libs     x86_64     1.1.16-8.fc12     updates     643 k
 system-config-printer-udev     x86_64     1.1.16-8.fc12     updates      55 k

Transaction Summary
===============================================================================
Install       0 Package(s)
Update        3 Package(s)

Total download size: 1.1 M
Is this ok [y/N] : y
List updates for a specific group:
$ yum --filter-rpm-groups="App*/Internet" list updates
...
Limiting package lists to filtered ones
Left with 1 of 9 packages, after filters applied
Updated Packages
purple-facebookchat.x86_64                 1.64-1.fc12                  updates
Upgrade a specific set of rpm groups:
$ yum --filter-rpm-groups="App*/Internet,Dev*/Lib*" update
...
Limiting package lists to filtered ones
Left with 4 (+0 related) of 18 packages, after filters applied
...
Dependencies Resolved

===============================================================================
Package                   Arch   Version        Repository Size
===============================================================================
Updating:
 libxcb-devel              x86_64       1.5-1.fc12         updates       139 k
 purple-facebookchat       x86_64       1.64-1.fc12        updates        47 k
Updating for dependencies:
 libxcb                    x86_64       1.5-1.fc12         updates        99 k

Transaction Summary
===============================================================================
Install       0 Package(s)
Update        3 Package(s)

Total dowload size: 285 k
Is this ok [y/N]:
List updates for a specific yum group:
$ yum --filter-groups="Development Tools,Server Configuration Tools" list updates
...
Limiting package lists to filtered ones
Left with 2 of 9 packages, after filters applied
Updated Packages
gdb.x86_64                                 7.0.1-26.fc12                updates
system-config-printer.x86_64               1.1.16-8.fc12                updates
Update a specific set of yum groups:
$ yum --filter-groups="X Window System,Printing Support" update
...
Limiting package lists to filtered ones
Left with 4 (+0 related) of 18 packages, after filters applied
...
Dependencies Resolved

===============================================================================
Package                   Arch   Version        Repository Size
===============================================================================
Updating:
 system-config-printer          x86_64     1.1.16-8.fc12     updates     434 k
 system-config-printer-udev     x86_64     1.1.16-8.fc12     updates      55 k
Updating for dependencies:
 system-config-printer-libs     x86_64     1.1.16-8.fc12     updates     643 k

Transaction Summary
===============================================================================
Install       0 Package(s)
Update        3 Package(s)

Total dowload size: 1.1 M
Is this ok [y/N]: