Differences between revisions 9 and 10
Revision 9 as of 2012-12-11 15:18:25
Size: 2081
Editor: dz
Revision 10 as of 2015-04-28 10:17:35
Size: 2120
Editor: dz
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:

~- /!\ current version in ~/lore -~

/!\ current version in ~/lore



E.g. http://dries.ulyssis.org/rpm

Add a file /etc/yum.repos.d/dries.repo with content:

name=Extra Fedora rpms dries - $releasever - $basearch

Add their public key: rpm --import 'file-with-key'

Other Repos

name=Dag RPM Repository for Red Hat Enterprise Linux

List/Install/Search only in one Repo

yum list --disablerepo=* --enablerepo=dries

Yum Rollback

Redhat 5

(undocumented feature since RPM 4.1)

Change the following config files:

(create if does not exist)
%_repackage_all_erasures 1

Apply rollback:

% rpm -Uhv –rollback ’14:00′
% rpm -Uhv –rollback ’9 hours ago’
% rpm -Uhv –rollback ‘yesterday’

Saved packages are stored in /var/spool/repackage.

Redhat 6

yum history
yum history undo ... # RTFM

Development Tools

yum groupinstall 'Development Tools'

After yum update

  1. Find rpmsave. They must be converted immediately, because yum has overwritten the current running config with the new ones.

    find / -name "*.rpmsave"
  2. Find rpmnew. These should be converted to get all the new features

    for i in `find / -name "*.rpmnew"`; do sum $i ${i%.rpmnew};done
    • I prefer vimdiff to adopt the config files, but any other merge tool will do, too. Finally do

    for i in `find / -name "*.rpmnew"`; do diff -u $i ${i%.rpmnew};done

to get an overview of all essential config entries.

  1. Get rid of the stale config files
    find / -name "*.rpmnew" -o -name "*.rpmsave" -exec rm {}\;

Redhat (last edited 2015-04-28 10:17:35 by dz)