Do you think you need this in emacs 29?
(require 'package)
(require 'use-package) ;; requires package.el and use-package so we can use it
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
;; Initialize use-package on non-Linux platforms
(unless (package-installed-p 'use-package)
(package-install 'use-package))