SlideShare a Scribd company logo
Security
Considerations
on Linux Package
Management
Hello!I am Tharindu Edirisinghe
You can find me at ….
tharindue.blogspot.com @thariyarox https://lk.linkedin.com/in/ediri ediri@live.com
Source : http://www.slideshare.net/tshrinivasan/foss-history-1300788
Source : http://www.aboutlinux.info/2006/04/mind-map-of-linux-distributions.html
Security Considerations on Linux Package Management
A Personal Package Archive (PPA) is a special software
repository for uploading source packages to be built and
published as an APT repository by Launchpad. While the
term is used exclusively within Ubuntu, Launchpad host
Canonical envisions adoption beyond the Ubuntu
community.
Source :
http://askubuntu.com/questions/4983/what-are-ppas-and-how-do-i-use-them
https://en.wikipedia.org/wiki/Personal_Package_Archive
sudo apt-get install <package name>
You can add a PPA to your system with a single line in your terminal. Open a terminal and enter:
sudo add-apt-repository ppa:shutter/ppa
Now, as a one-off, you should tell your system to pull down the latest list of software from each
archive it knows about, including the PPA you just added:
sudo apt-get update
Install Shutter
sudo apt-get install shutter
sudo dpkg -i <package file>
The Advanced Package Tool, or APT, is a free software user interface that works with
core libraries to handle the installation and removal of software on the Debian,
Slackware and other Linux distributions. APT simplifies the process of managing
software on Unix-like computer systems by automating the retrieval, configuration and
installation of software packages, either from precompiled files or by compiling source
code.
APT was originally designed as a front-end for dpkg to work with Debian's .deb
packages, but it has since been modified to also work with the RPM Package Manager
system via APT-RPM.The Fink project has ported APT to Mac OS X for some of its own
package management tasks, and APT is also available in OpenSolaris.
Source : https://en.wikipedia.org/wiki/Advanced_Packaging_Tool
dpkg is the software at the base of the package
management system in the free operating system Debian
and its numerous derivatives. dpkg is used to install, remove,
and provide information about .deb packages.
Source : https://en.wikipedia.org/wiki/Dpkg
package_name
├── DEBIAN
│ ├── control (meta data of the package)
│ ├── preinst (execute before installing the package)
│ ├── postinst (execute after installing the package)
│ ├── prerm (execute before un-installing the package)
│ └── postrm (execute after un-installing the package)
│
└── /……. (folders and files following the linux file structure)
Source : https://www.hivelocity.net/kb/what-are-preinst-postinst-prerm-and-postrm-script-2/
demo
mkdir -p helloworld_1.0-1/usr/local/bin
cp ~/Projects/Hello World/helloworld helloworld_1.0-1/usr/local/bin/
mkdir helloworld_1.0-1/DEBIAN
vi helloworld_1.0-1/DEBIAN/control
dpkg-deb --build helloworld_1.0-1
Source : https://ubuntuforums.org/showthread.php?t=910717
Package: helloworld
Version: 1.0-1
Section: base
Priority: optional
Architecture: i386
Depends: libsomethingorrather (>= 1.2.13), xyz (>= 1.2.6)
Maintainer: Tharindu Edirisinghe <ediri@live.com>
Description: Hello World
When you need some sunshine, just run this
small program!
Install a Debian (.deb) package
× sudo dpkg -i <package name>
List installed packages
× dpkg -l <package name with/out wildcards>
Un-Install a Debian (.deb) package binaries
× sudo dpkg --remove <package name>
Un-Install a Debian (.deb) package binaries and configuration files
× sudo dpkg --purge <package name>
Security Considerations on Linux Package Management
Linux Package Management
https://www.linode.com/docs/tools-reference/linux-package-management
Package Management Security
https://isis.poly.edu/~jcappos/papers/cappos_pmsec_tr08-02.pdf
Debian Packaging Tutorial
https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf
THANKS!Any questions?
You can find me at ….
tharindue.blogspot.com @thariyarox https://lk.linkedin.com/in/ediri ediri@live.com

More Related Content

PDF
Setting up iSCSI Providers and Clients in openSUSE
PDF
EUC 2013 - Erlang in a *NIX World
PPT
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
PDF
How to mount and unmount filesystem
PPTX
Darwin OS
PPTX
Tomoyo linux introduction
PDF
Madagascar2011 - 04 - Présentation configuration pratical work
 
Setting up iSCSI Providers and Clients in openSUSE
EUC 2013 - Erlang in a *NIX World
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
How to mount and unmount filesystem
Darwin OS
Tomoyo linux introduction
Madagascar2011 - 04 - Présentation configuration pratical work
 

What's hot (20)

PPTX
Installing application in ubuntu [autosaved]
PDF
GIT pour développeur
PDF
Redhat enterprise Linux
PPTX
Overview of linux kernel development
PPT
101 4.1 create partitions and filesystems
PPTX
Oprating sys
PDF
Windows Storage Server 2008 R2
PDF
Rust + python: lessons learnt from building a toy filesystem
PDF
repositor.io - Simple Repository Management
PPT
Linuxppt
PDF
[ 2021 AI + X 여름 캠프 ] 1. linux 기초 & 장비 세팅
DOCX
Linux Tor Browser kurulum
ODP
Respositórios do Ubuntu, santo apt-get e outras coisas
PDF
Preventing cpu side channel attacks with kernel tracking
PDF
1 04 rao
PDF
Beyondfs-intro
PPT
Introduction To Unix
ODP
Python-specific packaging
PPT
101 2.4 use debian package management
PPT
101 2.4b use debian package management v2
Installing application in ubuntu [autosaved]
GIT pour développeur
Redhat enterprise Linux
Overview of linux kernel development
101 4.1 create partitions and filesystems
Oprating sys
Windows Storage Server 2008 R2
Rust + python: lessons learnt from building a toy filesystem
repositor.io - Simple Repository Management
Linuxppt
[ 2021 AI + X 여름 캠프 ] 1. linux 기초 & 장비 세팅
Linux Tor Browser kurulum
Respositórios do Ubuntu, santo apt-get e outras coisas
Preventing cpu side channel attacks with kernel tracking
1 04 rao
Beyondfs-intro
Introduction To Unix
Python-specific packaging
101 2.4 use debian package management
101 2.4b use debian package management v2
Ad

Viewers also liked (11)

PDF
Portafolio de Diseno grafico - Christian Esteban Proano
PPTX
Internet
PPTX
GHY101 1-2 Geography as science 2017_01_25
PDF
Apresentação Aquarela Produção e Evento
PDF
Healthcare IoT and Analytics to treat Parkinsons
PPTX
Miley cyrus.odp
PPTX
1. historia del diseño grafico 1
PDF
OpinionWay - Avocats de la famille - Loi sur le divorce par consentement mutu...
PDF
snapshot ではじめる ローカライズ検証
PDF
TYPES OF INSTRUCTIONAL MATERIALS
PDF
Introducing Ballerina
Portafolio de Diseno grafico - Christian Esteban Proano
Internet
GHY101 1-2 Geography as science 2017_01_25
Apresentação Aquarela Produção e Evento
Healthcare IoT and Analytics to treat Parkinsons
Miley cyrus.odp
1. historia del diseño grafico 1
OpinionWay - Avocats de la famille - Loi sur le divorce par consentement mutu...
snapshot ではじめる ローカライズ検証
TYPES OF INSTRUCTIONAL MATERIALS
Introducing Ballerina
Ad

Similar to Security Considerations on Linux Package Management (20)

PDF
$ make install
PPT
Linux Troubleshooting
PPTX
Software management in linux
KEY
Deploying and maintaining your software with RPM/APT
ODP
Basic orientation to Linux
PDF
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
PDF
Root file system for embedded systems
PDF
Launch and Environment Constraints Overview
PDF
File system discovery
PPTX
RPM (LINUX)
PPT
Edubooktraining
PDF
HowTo Install openMPI on Ubuntu
PPTX
how to generate debian package from scratch
PPT
Unix Administration 2
PPT
101 2.5 use rpm and yum package management
PDF
Approaching package manager
PPTX
RHEL Log-files, RPM, Backup & Recovery
PPT
Basic Linux Internals
PPT
101 2.5 use rpm and yum package management
PPT
101 2.5 use rpm and yum package management
$ make install
Linux Troubleshooting
Software management in linux
Deploying and maintaining your software with RPM/APT
Basic orientation to Linux
Part 2 of 'Introduction to Linux for bioinformatics': Installing software
Root file system for embedded systems
Launch and Environment Constraints Overview
File system discovery
RPM (LINUX)
Edubooktraining
HowTo Install openMPI on Ubuntu
how to generate debian package from scratch
Unix Administration 2
101 2.5 use rpm and yum package management
Approaching package manager
RHEL Log-files, RPM, Backup & Recovery
Basic Linux Internals
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management

More from Tharindu Edirisinghe (6)

PPTX
Enterprise Cloud Security Posture Management_Kodez.pptx
PDF
ISD_LMS_Lecture4_OOAnalysis____DA-20.pdf
PDF
Securing SAML SSO from XSW attacks
PDF
Owasp API Security top 10 - The need of enterprise solutions for managing API...
PPTX
The Rise of Ransomware
PPTX
Managing Security in External Software Dependencies
Enterprise Cloud Security Posture Management_Kodez.pptx
ISD_LMS_Lecture4_OOAnalysis____DA-20.pdf
Securing SAML SSO from XSW attacks
Owasp API Security top 10 - The need of enterprise solutions for managing API...
The Rise of Ransomware
Managing Security in External Software Dependencies

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Electronic commerce courselecture one. Pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation theory and applications.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Electronic commerce courselecture one. Pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
sap open course for s4hana steps from ECC to s4
Advanced methodologies resolving dimensionality complications for autism neur...
The Rise and Fall of 3GPP – Time for a Sabbatical?
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
MIND Revenue Release Quarter 2 2025 Press Release
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Network Security Unit 5.pdf for BCA BBA.
Encapsulation theory and applications.pdf
Review of recent advances in non-invasive hemoglobin estimation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Reach Out and Touch Someone: Haptics and Empathic Computing

Security Considerations on Linux Package Management

  • 2. Hello!I am Tharindu Edirisinghe You can find me at …. tharindue.blogspot.com @thariyarox https://lk.linkedin.com/in/ediri ediri@live.com
  • 6. A Personal Package Archive (PPA) is a special software repository for uploading source packages to be built and published as an APT repository by Launchpad. While the term is used exclusively within Ubuntu, Launchpad host Canonical envisions adoption beyond the Ubuntu community. Source : http://askubuntu.com/questions/4983/what-are-ppas-and-how-do-i-use-them https://en.wikipedia.org/wiki/Personal_Package_Archive
  • 7. sudo apt-get install <package name>
  • 8. You can add a PPA to your system with a single line in your terminal. Open a terminal and enter: sudo add-apt-repository ppa:shutter/ppa Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added: sudo apt-get update Install Shutter sudo apt-get install shutter
  • 9. sudo dpkg -i <package file>
  • 10. The Advanced Package Tool, or APT, is a free software user interface that works with core libraries to handle the installation and removal of software on the Debian, Slackware and other Linux distributions. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from precompiled files or by compiling source code. APT was originally designed as a front-end for dpkg to work with Debian's .deb packages, but it has since been modified to also work with the RPM Package Manager system via APT-RPM.The Fink project has ported APT to Mac OS X for some of its own package management tasks, and APT is also available in OpenSolaris. Source : https://en.wikipedia.org/wiki/Advanced_Packaging_Tool
  • 11. dpkg is the software at the base of the package management system in the free operating system Debian and its numerous derivatives. dpkg is used to install, remove, and provide information about .deb packages. Source : https://en.wikipedia.org/wiki/Dpkg
  • 12. package_name ├── DEBIAN │ ├── control (meta data of the package) │ ├── preinst (execute before installing the package) │ ├── postinst (execute after installing the package) │ ├── prerm (execute before un-installing the package) │ └── postrm (execute after un-installing the package) │ └── /……. (folders and files following the linux file structure) Source : https://www.hivelocity.net/kb/what-are-preinst-postinst-prerm-and-postrm-script-2/
  • 13. demo
  • 14. mkdir -p helloworld_1.0-1/usr/local/bin cp ~/Projects/Hello World/helloworld helloworld_1.0-1/usr/local/bin/ mkdir helloworld_1.0-1/DEBIAN vi helloworld_1.0-1/DEBIAN/control dpkg-deb --build helloworld_1.0-1 Source : https://ubuntuforums.org/showthread.php?t=910717 Package: helloworld Version: 1.0-1 Section: base Priority: optional Architecture: i386 Depends: libsomethingorrather (>= 1.2.13), xyz (>= 1.2.6) Maintainer: Tharindu Edirisinghe <ediri@live.com> Description: Hello World When you need some sunshine, just run this small program!
  • 15. Install a Debian (.deb) package × sudo dpkg -i <package name> List installed packages × dpkg -l <package name with/out wildcards> Un-Install a Debian (.deb) package binaries × sudo dpkg --remove <package name> Un-Install a Debian (.deb) package binaries and configuration files × sudo dpkg --purge <package name>
  • 17. Linux Package Management https://www.linode.com/docs/tools-reference/linux-package-management Package Management Security https://isis.poly.edu/~jcappos/papers/cappos_pmsec_tr08-02.pdf Debian Packaging Tutorial https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf
  • 18. THANKS!Any questions? You can find me at …. tharindue.blogspot.com @thariyarox https://lk.linkedin.com/in/ediri ediri@live.com