Broken Package - Is it possible to downgrade - PKG BINARY reddit / freebsd ---------------------------------------------------------------------- Full-Evidence6936 · 2021-06-07 15:56 Hi all, Have used FreeBSD on my laptop for a while now (used gnome-shell, gdm), after upgrading, gdm is fully broken (lock is broken and login). Is it possible to install a previous version or something, or is that not possible. I am using pkg. ---------------------------------------------------------------------- FUZxxl · 2021-06-07 16:21 The old package files should still be in `/var/cache/pkg`. You can reinstall them from there. I recommend applying a `pkg lock` to the packages in question so they won't be upgraded next time. ---------------------------------------------------------------------- grahamperrin · 2021-06-07 16:33 https://man.freebsd.org/pkg-add(8) You might find the required package(s) at: `/var/cache/pkg` Proceed with caution. Which version of FreeBSD? ZFS or UFS? If ZFS: create, activate then boot a boot environment before attempting to fix. https://www.freshports.org/x11/gdm/#history https://www.freshports.org/x11/gnome-shell/#history Did the breakage occur with quarterly, or latest? `grep url /etc/pkg/FreeBSD.conf` ---------------------------------------------------------------------- msh_03 · 2021-06-07 16:52 If these other comments about old package files don’t work you can set the version yourself when you build from ports ---------------------------------------------------------------------- Full-Evidence6936 · 2021-06-07 17:54 Using ufs (ufs2). Thanks will try it out. ---------------------------------------------------------------------- Full-Evidence6936 · 2021-06-07 17:54 thx ---------------------------------------------------------------------- Full-Evidence6936 · 2021-06-07 17:55 Thanks, will try that out. ---------------------------------------------------------------------- grahamperrin · 2021-06-08 06:16 If you then install from what's built, first check whether your other installations were from quarterly or latest. If from quarterly, then installation from ports (i.e. latest) might yield unexpected results. ---------------------------------------------------------------------- Full-Evidence6936 · 2021-06-15 23:19 Hey sorry again, How can I set the version when building from ports? I edited the Make file but it throws me a error. ---------------------------------------------------------------------- grahamperrin · 2021-06-16 00:12 > … edited the Make file … If you want the file to look exactly like https://cgit.freebsd.org/por ts/tree/sysutils/accountsservice/Makefile?id=305f148f482daf30dcf728039 d03d019f88344eb and if you normally use Git to update your ports tree, you can use [git-checkout\(1\)](https://man.freebsd.org/git- checkout\(1\)). For example (eventually, you'll want to cease using an outdated version): # cd /usr/ports # grep PORTVERSION sysutils/accountsservice/Makefile PORTVERSION= 0.6.55 # git checkout 305f148f482daf30dcf728039d03d019f88344eb sysutils/accountsservice/Makefile Updated 1 path from ff16a91b9ebb # grep PORTVERSION sysutils/accountsservice/Makefile PORTVERSION= 0.6.42 # git reset sysutils/accountsservice/Makefile Unstaged changes after reset: M sysutils/accountsservice/Makefile # grep PORTVERSION sysutils/accountsservice/Makefile PORTVERSION= 0.6.42 # git checkout sysutils/accountsservice/Makefile Updated 1 path from the index # grep PORTVERSION sysutils/accountsservice/Makefile PORTVERSION= 0.6.55 # ---- For myself, I don't understand why I can't do the same for poudriere: # cd /usr/local/poudriere/ports/default # poudriere ports -u [00:00:00] Updating portstree "default" with git+https... done # git checkout 305f148f482daf30dcf728039d03d019f88344eb sysutils/accountsservice/Makefile fatal: reference is not a tree: 305f148f482daf30dcf728039d03d019f88344eb # pwd /usr/local/poudriere/ports/default # poudriere ports -u [00:00:00] Updating portstree "default" with git+https... done # time git pull --quiet 0.24 real 0.08 user 0.06 sys # git checkout 305f148f482daf30dcf728039d03d019f88344eb sysutils/accountsservice/Makefile fatal: reference is not a tree: 305f148f482daf30dcf728039d03d019f88344eb # git pull Already up to date. # git status On branch main Your branch is up to date with 'origin/main'. nothing to commit, working tree clean # … Git aside, for there's probably a saner way to specify a version of a package before running [poudriere\(8\)](https://man.freebsd.org/poudriere\(8\)). ---------------------------------------------------------------------- grahamperrin · 2021-06-17 13:56 Under a nearby post: https://old.reddit.com/r/freebsd/comments/nw77f5/gdm_help/h1zn2af/