Linux Package Manager
Aptitude (Debian) Dpkg(Debian) Up2date (RH 4) Yum (RH 5) RPM (RH)
Aptitude (Debian)
Dpkg(Debian)
Up2date (RH 4)
Up2date konfigurieren und am RHN anmelden
rpm --import /usr/share/rhn/RPM-GPG-KEY
up2date --configure
3 Yes (Proxy verwenden)
11 proxy.xxx.xxx:80 (proxy eintragen)
up2date --register
Beim Konfigurieren kann auch hinterlegt werden, welche Pakete nur mit dem Force-Parameter upgedated werden k�nnen. Standardm��ig sind da alle Kernelpakete eingetragen.
Up2date Update-Paketliste anzeigen
up2date -l
Updaten mit up2date
up2date -u Update alle nicht vom Update ausgeschlossen Pakete
up2date -uf Update alle Pakete auch ide die vom Standardupdate ausgenommen sind (meist nur f�r die Kernelpakete notwendig)
Bekannte Fehler
Problem:
"Unable to fetch requested Package
See /var/log/up2date for more information"
[Fri Jul 9 11:32:59 2010] up2date availablePackageList from network
[Fri Jul 9 11:33:08 2010] up2date Unable to fetch requested Package
[Fri Jul 9 11:33:08 2010] up2date File "/usr/sbin/up2date", line 1315, in ?
sys.exit(main() or 0)
L�sung:
Log into the Red Hat Network (RHN) -> Navigate to the Systems tab -> Click the system name -> Click Edit These Properties -> Uncheck the box labeled 'Location-Aware Updates' to disable and save changes.
Yum (RH 5)
Konfigurieren
Die Konfiguration von yum liegt in der Datei
/etc/yum.conf
Wenn bei yum Packete von dem Update ausgenommen werden m�ssen, muss die Datei wie folgt angepasst werden
[main]
exclude=kernel*
Mehrere Pakete sind durch Leerzeichen zu trennen. Standardm��ig werden hier keine Pakete ausgenommen.
Am RedHat Network registrieren und Proxy hinterlegen
rhn_register --proxy=http://proxy.bechtle.de:80
Update Pakete anzeigen lassen
yum list updates --disableexcludes=all
Update der Pakete
yum update Update alle nicht vom Update ausgeschlossen Pakete
yum update --disableexcludes=all Update alle Pakete auch ide die vom Standardupdate ausgenommen sind (meist nur f�r die Kernelpakete notwendig)
Bekannte Fehler
Problem:
Error: failed to retrieve repodata/filelists.xml.gz from rhel-x86_64-server-5
error was [Errno -1] Metadata file does not match checksum
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
L�sung:
rhn-profile-sync
yum clean all
yum update
RPM (RH)
Auslesen der Installierten Pakete
rpm -qa
rpm -qa --qf "%{n}-%{arch}\n" Mitauslesen der Architektur