• No results found

System Administration

N/A
N/A
Protected

Academic year: 2021

Share "System Administration"

Copied!
31
0
0

Loading.... (view fulltext now)

Full text

(1)

System Administration

Week 04, Segment 3

Package Management

Department of Computer Science

Stevens Institute of Technology

Jan Schaumann

[email protected]

https://stevens.netmeister.org/615/

https://www.pexels.com/photo/person-in-black-leather-boots-sitting-on-brown-cardboard-boxes-4553277/ Photo by cottonbro from Pexels

(2)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

2

Example System / OS 3rd Party / Add-on

kernel drivers firmware libc shell ssh(1) / sshd(8) mail server http server database python

(3)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

3

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers firmware libc shell ssh(1) / sshd(8) mail server http server database python

(4)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

4

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware libc shell ssh(1) / sshd(8) mail server http server database python

(5)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

5

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc shell ssh(1) / sshd(8) mail server http server database python

(6)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

6

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ssh(1) / sshd(8) mail server http server database python

(7)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

7

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ✅ ✅ ssh(1) / sshd(8) mail server http server database python

(8)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

8

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ✅ ✅ ssh(1) / sshd(8) ✅ ✅ mail server http server database python

(9)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

9

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ✅ ✅ ssh(1) / sshd(8) ✅ ✅ mail server ✅ ✅ http server database python

(10)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

10

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ✅ ✅ ssh(1) / sshd(8) ✅ ✅ mail server ✅ ✅ http server ⁇ ✅ database python

(11)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

11

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ✅ ✅ ssh(1) / sshd(8) ✅ ✅ mail server ✅ ✅ http server ⁇ ✅ database ❌ ✅ python

(12)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

12

Example System / OS 3rd Party / Add-on

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ✅ ✅ ssh(1) / sshd(8) ✅ ✅ mail server ✅ ✅ http server ⁇ ✅ database ❌ ✅ python ⁇ ✅

(13)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

13

Example System / OS 3rd Party / Add-on Packaged?

kernel ✅ ❌ drivers ✅ ✅ firmware ❌ ✅ libc ✅ ❌ shell ✅ ✅ ssh(1) / sshd(8) ✅ ✅ mail server ✅ ✅ http server ⁇ ✅ database ❌ ✅ python ⁇ ✅

(14)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

CS615 - System Administration

14

Example System / OS 3rd Party / Add-on Packaged?

kernel ✅ ❌ ⁇ drivers ✅ ✅ ⁇ firmware ❌ ✅ ⁇ libc ✅ ❌ ⁇ shell ✅ ✅ ⁇ ssh(1) / sshd(8) ✅ ✅ ⁇ mail server ✅ ✅ ⁇ http server ⁇ ✅ ⁇ database ❌ ✅ ⁇ python ⁇ ✅ ⁇

(15)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(16)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(17)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(18)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(19)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(20)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(21)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(22)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(23)

Jan Schaumann 2021-02-23

Software Types

CS615 - System Administration

(24)

Jan Schaumann 2021-02-23

System Software vs. Third Party Software

Consider:

OS upgrades vs. software upgrades

location of configuration files

duplicates or conflicting versions in the base system vs. the add-ons

startup scripts, dæmons

location of third party software

dependencies

installation by hand and/or installation using a package manager

proprietary third party software

CS615 - System Administration

(25)

Jan Schaumann 2021-02-23

You don’t get to choose.

CS615 - System Administration

25

You routinely have to build from source

(26)

👍 A software 📦 inventory! 👍

👍 A file listing and 🔍 tool! 👍

(27)
(28)
(29)

Jan Schaumann 2021-02-23

Summary and Exercises

CS615 - System Administration

29

What comprises an OS, what is “System” vs. Add-on is not an obvious distinction.

Some dependencies are more tightly coupled (e.g., kernel + libc).

Some required components, alternative options, or completely optional, yet convenient add-ons may be grouped into the OS “distribution”.

Package Managers Features:

easy and scalable installation of software

automatic resolution of software dependencies

package and file inventory

package and file integrity checks

vulnerability checks

(30)

Jan Schaumann 2021-02-23

Summary and Exercises

CS615 - System Administration

30

Identify a piece of software you use, but that’s not packaged for a given package manager. Create a package for it, then contribute upstream.

Create a cheat sheet for 4 different package managers, listing the most important

equivalent commands, such as “install a package”, “update a package”, “remove a package”, “list contents of a package”, and “list the package owning the given file”.

How does your preferred OS update firmware?

How does the concept of reproducible builds relate to what we discussed here?

What is the overlap with system configuration? Can a package manager assert state?

Compare binary package management to building and installing an application from source: https://stevens.netmeister.org/615/package-exercise.html

(31)

Jan Schaumann 2021-02-23

Links

CS615 - System Administration

31 Software Installation and Package Management:

https://www.netmeister.org/book/05-software-installation-and-package-management.pdf pkgsrc (NetBSD and others): https://www.netbsd.org/docs/pkgsrc/

FreeBSD Ports: https://www.freebsd.org/ports/ RPM: https://rpm.org/

Debian Package Management: https://wiki.debian.org/PackageManagement OmniOS Package Management:

https://github.com/omniosorg/omnios-wiki/blob/master/GeneralAdministration.md#user-content-package-management

References

Related documents

Involves developing an understanding of the risk, provide an input to risk evaluation and to decisions on whether risks need to be treated, and on the most appropriate risk treatment

We believe there are two SaaS metrics that matter most: Gross Margin Payback Period GMPP and Return on Customer Acquisition Cost rCAC.. GMPP is the number of months required to

Given such commonalities, it is possible that “ biologically aged ” HIV-positive persons might bene fi t from models of adapted and integrated care developed over the years

Hermetic Package Non-hermetic Package Ceramic Package Tab Tape Package Plastic Package Metal lid Package Non-ceramic Packages BGA Package..

According to Sedgwick, Dugin's activities can be characterized as Traditionalist because "his spiritual practice may be explained in terms of Guenon, and his political

We have shown that our model can present results that are a priori paradoxical in a Ricardian context: when there is technical progress in North biased towards the most

To address the first part of Research Question 1, the relationship between parents’ (n = 58) mindsets (growth or fixed) and children’s behaviors associated with mindsets (i.e.

As discussed previously, an Equivalent Single Axle Load (ESAL) is a measure of damage a truck will create should it be allowed on the road. In general, when a vehicle’s gross vehicle