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

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

/!\ current version in ~/lore

Redhat/Fedora/CentOS

Repositories

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

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

[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el4/en/i386/dries/RPMS

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

Other Repos

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1

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:

/etc/yum.conf
tsflags=repackage
/etc/rpm/macros
(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)