User Tools

Site Tools


linux_og_unix:packagemanagement

Table of Contents

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 <pakke>

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

FPM presentation
Use FPM to easily create packages in multiple formats

linux_og_unix/packagemanagement.txt · Last modified: 2023/10/21 19:19 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki