[[linux_og_unix:sysadm|Tilbage til Sysadm]] ---- ===== Package Management ===== ==== DEB ==== Apply a source patch dpkg-source -x wu-ftpd_2.6.0-4.dsc Hente sourcen til en debian pakke ved at tilføje en deb-src linje til __/etc/apt/sources.list__ og hente sourcen med apt-get source [[https://wiki.debian.org/HowToPackageForDebian|Debian package guide]] ==== RPM ==== Bygge egne rpm-pakke udfra source: mkdir $HOME/rpm mkdir $HOME/rpm/SOURCES mkdir $HOME/rpm/SPECS mkdir $HOME/rpm/BUILD mkdir $HOME/rpm/SRPMS mkdir $HOME/rpm/RPMS mkdir $HOME/rpm/RPMS/{i686,x86_64} echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros rpmbuild -ta courier-0.40.tar.bz2 Genopbygge RPM databasen: rm -f /var/lib/rpm/__db* rpm –rebuilddb yum clean all ==== FPM ==== apt install ruby-dev / dnf install ruby-devel gem install fpm [[https://docs.google.com/presentation/d/11TOsLeg58w7GCt6i7y1VIQWnUYotsx0MzGMJ_dWUJNo/edit#slide=id.i0|FPM presentation]]\\ [[https://www.digitalocean.com/community/tutorials/how-to-use-fpm-to-easily-create-packages-in-multiple-formats|Use FPM to easily create packages in multiple formats]]