Skip to content

DEB RPM management

mathildemerle edited this page Apr 5, 2023 · 2 revisions

Ubuntu DEB

Compile with cmake .., then make package, or make then cpack ...

# User installation/uninstallation
sudo dpkg -i medInria-4.0.0-Ubuntu_20.04-x86_64.deb
sudo apt-get install -f # to fix missing dependencies if any
sudo dpkg -r medinria
# OR
sudo apt install gdebi-core
sudo gdebi ./medInria-4.0.0-Ubuntu_20.04-x86_64.deb # command line
# OR
sudo apt install gdebi
gdebi-gtk ./medInria-4.0.0-Ubuntu_20.04-x86_64.deb # GUI to install/remove/read info
# Then the user only needs to:
medInria

Fedora RPM

Prerequisites on Fedora to create a RPM package: sudo yum install redhat-lsb-core rpm-build

Compile with cmake .., then make package, or make then cpack ...

# User installation/uninstallation
sudo dnf install ./medInria-4.0.0-Fedora_33-x86_64.rpm
sudo dnf remove medInria
# Then the user only needs to:
medInria

If the RPM needs rebuilding

sudo yum install rpmrebuild
rpmrebuild -pe ./medInria-4.0.0-Fedora_33-x86_64.rpm
# Find the line(s) you wish to change -> remove all /home[...] lines for instance
# Save and exit your editor  
cd /home/[user]/rpmbuild/RPMS/x86_64
sudo dnf install ./[rebuilt RPM]