User Tools

Site Tools


linux_og_unix:packagemanagement

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_og_unix:packagemanagement [2016/12/15 14:38] (current)
Line 1: Line 1:
 +[[linux_og_unix:​sysadm|Tilbage til Sysadm]]
 +----
 +===== Package Management =====
 +==== DEB ====
 +Apply a source patch
 +<​code>​dpkg-source -x wu-ftpd_2.6.0-4.dsc</​code>​
  
 +Hente sourcen til en debian pakke ved at
 +tilføje en deb-src linje til  __/​etc/​apt/​sources.list__
 +og hente sourcen med
 +<​code>​apt-get source <​pakke></​code>​
 +
 +[[https://​wiki.debian.org/​HowToPackageForDebian|Debian package guide]]
 +
 +==== RPM ====
 +Bygge egne rpm-pakke udfra source:
 +<​code>​
 +  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
 +</​code>​
 +
 +Genopbygge RPM databasen:
 +<​code>​
 +  rm -f /​var/​lib/​rpm/​__db*
 +  rpm –rebuilddb
 +  yum clean all
 +</​code>​
 +
 +
 +==== FPM ====
 +
 +<​code>​
 +  apt install ruby-dev / dnf install ruby-devel
 +  gem install fpm
 +</​code>​
 +[[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]]
linux_og_unix/packagemanagement.txt · Last modified: 2016/12/15 14:38 (external edit)