BlogBlog ÜbersichtjailscriptportsoptFreeBSDLinksThermoskanne

Port auf einen älteren Stand zurücksetzen mit portdowngrade

Nachdem ich Sunbird auf 0.3a1 aktualisierte, waren alle Termine verschwunden und Sunbird weigerte sich standhaft die Termine zu importieren. Also musste die alte Sunbird Version wieder her.

Deshalb gleich sysutils/portdowngrade installiert:

# cd /usr/ports/sysutils/portdowngrade && make install clean

Sunbird deinstalliert:

# pkg_deinstall -f linux-sunbird

Und dann deskutils/linux-sunbird wieder auf den alten Stand gebracht:

# setenv CVSROOT :pserver:anoncvs@anoncvs2.de.FreeBSD.org:/home/ncvs
# cvs login
Logging in to :pserver:anoncvs@anoncvs2.de.freebsd.org:2401/home/ncvs
CVS password: anoncvs
# portdowngrade linux-sunbird

portdowngrade 0.6 by Heiner Eichmann
Please note, that nothing is changed in the ports tree
unless it is explicitly permitted in step 6!

Seeking port linux-sunbird ... found: deskutils/linux-sunbird

Step 1: Checking out port from CVS repository
CVS root directory (from CVSROOT environment variable): :pserver:anoncvs@anoncvs2.de.FreeBSD.org:/home/ncvs

Step 2: Reading the port history from the CVS repository

Step 3: Analyzing the port history from the CVS repository

Step 4: Load port version numbers and present results
Keys: space : next page d : details
p : previous page
enter : leave presentation and downdgrade if wanted
===================================================================================================================================================================================================
number date portversion comment
1 2005/12/07 13:13:31 0.3a1_1 - Update to 0.3a1
2 2005/06/17 22:59:27 0.2_1 Mega-patch to cleanup the ports infrastructure regarding our linux bits:
3 2005/03/01 22:24:25 0.2 new port: misc/linux-sunbird

Total lines: 3. Command: [Enter]
Enter version number to change port to (0: exit): 2


Step 5: Checking out choosen date of the port from the CVS repository

Step 6: Modifying the port
Port: deskutils/linux-sunbird
at : 2005/06/17 22:59:27
Type 'yes' to bring the port to the state of the date above
or 'no' to exit without changing anything. Note, that this only changes
the port, not the installed software! yes or no:yes

The port has been set to the selected version. Install it if you wish.
If you have portupgrade installed, you should run

portsdb -Uu

now, to see the changes in the ports database. In any case

portupgrade -f linux-sunbird

will install the changed port. Note: if you run cvsup, the port
is changed back to the choosen label!

Danach linux-sunbird wieder installiert und alle Termine waren wieder da.

# cd /usr/ports/deskutils/linux-sunbird && make install clean

UPDATE 05.02.2007:

portdowngrade wurde von sysutils in die neue Kategorie ports-mgmt verschoben. portdowngrade kann nun wie folgt installiert werden:

# cd /usr/ports/ports-mgmt/portdowngrade && make install clean
Related Entries:
Gespeicherte Optionen nach OptionsNG konvertieren
Ports-Subversion-Repository spiegeln
sysinstall-Ersatz für neuere FreeBSD-Versionen
Alte FreeBSD-Port Patchdateien aufsplitten
FreeBSD-Portbaum auf Fehler überprüfen
Comments (2)  Permalink

su: not running setuid

Hat man eine neue Jail erstellt und möchte einem wheel-Benutzer mit su zu root-Rechten verhelfen, aber dies mit folgender Meldung verweigert wird:

# su
su: not running setuid

so hat man die Jail auf einer Partition erstellt, die mit der nosuid Option gemountet wurde.

Related Entries:
Gespeicherte Optionen nach OptionsNG konvertieren
Ports-Subversion-Repository spiegeln
sysinstall-Ersatz für neuere FreeBSD-Versionen
Alte FreeBSD-Port Patchdateien aufsplitten
FreeBSD-Portbaum auf Fehler überprüfen
 Permalink
1-2/2