L e c t u r e 0 6 : S o f t w a r e m a n a g - - PDF document

l e c t u r e 0 6 s o f t w a r e m a n a g e m e n t o r
SMART_READER_LITE
LIVE PREVIEW

L e c t u r e 0 6 : S o f t w a r e m a n a g - - PDF document

L e c t u r e 0 6 : S o f t w a r e m a n a g e m e n t o r H o w I L e a r n e d t o S t o p W o r r y i n g a n d L o v e A P T P a r t 2 H a n d s - o n U n


slide-1
SLIDE 1

L e c t u r e 6 : S

  • f

t w a r e m a n a g e m e n t

  • r

“ H

  • w

I L e a r n e d t

  • S

t

  • p

W

  • r

r y i n g a n d L

  • v

e A P T ” P a r t 2 H a n d s

  • n

U n i x s y s t e m a d m i n i s t r a t i

  • n

D e C a l 2 1 2

  • 1
  • 8

M a k e i n s t a l l s u c k s :

  • n
  • t

g u a r a n t e e d t

  • w
  • r

k c

  • n

s i s t e n t l y

  • t

a k e s t i m e ( h u m a n a n d c

  • m

p u t a t i

  • n

a l )

  • d

i s

  • r

g a n i z e d

  • m

a n y f i l e s i n s t a l l t

  • /

u s r / l

  • c

a l , b u t n

  • t

a l w a y s , c a n i n s t a l l a n y w h e r e

  • n

s y s t e m , a n d p

  • s

s i b l y

  • v

e r w r i t e

  • r

i n t e r f e r e w i t h

  • t

h e r t h i n g s

  • W

h a t i s i n s t a l l e d ? A n d w h a t v e r s i

  • n

? W h a t i n s t a l l e d s

  • f

t w a r e i s v u l n e r a b l e t

  • a

e x p l

  • i

t ? W h a t s

  • f

t w a r e h a s a m a j

  • r

b u g ?

  • m

a k e u n i n s t a l l t a r g e t d

  • e

s n ' t a l w a y s e x i s t

  • r

w

  • r

k c l e a n l y

  • n

e e d t

  • k

e e p c

  • p

y

  • f

s

  • u

r c e D e p e n d e n c y h e l l :

  • m

a n y d e p e n d e n c i e s , t e d i

  • u

s

  • c

h a i n s

  • f

d e p e n d e n c i e s ( d e p e n d e n c i e s h a v e d e p e n d e n c i e s t h e m s e l v e s )

  • c
  • n

f l i c t i n g d e p e n d e n c i e s

  • d

i f f e r e n t v e r s i

  • n

s a n d v a r i a n t s w h i c h m a y b e i n c

  • m

p a t i b l e , b u t n

  • s

p e c i f i c “ c a n

  • n

i c a l ” d

  • c

u m e n t a t i

  • n
  • c

i r c u l a r d e p e n d e n c i e s ( d e p e n d e n c i e s m a y b e d e p e n d e n t

  • n
  • r

i g i n a l s

  • f

t w a r e ) U p g r a d i n g c

  • m

p

  • u

n d s p r

  • b

l e m s :

  • y
  • u

n e e d t

  • k

e e p t r a c k

  • f

u p d a t e s ( s e c u r i t y u p d a t e s a n d b u g f i x e s ) s

k n

  • w

i n g w h a t i s i n s t a l l e d , w h a t v e r s i

  • n

s , w h i c h v u l n e r a b l e , i s i m p

  • r

t a n t

  • y
  • u

n e e d t

  • a

g a i n i n s t a l l f e t c h , c

  • m

p i l e , a n d d e a l w i t h d e p e n d e n c y h e l l

  • y
  • u

n e e d t

  • e

n s u r e c

  • m

p a t i b i l i t y d u r i n g u p d a t e , u p d a t e

  • t

h e r s

  • f

t w a r e a t t h e s a m e t i m e , a n d p r a y n

  • t

h i n g b r e a k s P a c k a g e m a n a g e m e n t :

  • U

n i x d i s t r i b u t i

  • n

p r

  • v

i d e s a c e n t r a l r e p

  • s

i t

  • r

y

  • f

p a c k a g e s e a c h w i t h a d i f f e r e n t n a m e

  • p

a c k a g e s c a n b e s

  • u

r c e p a c k a g e s w h i c h a r e m e a n t t

  • b

e c

  • m

p i l e d d u r i n g i n s t a l l a t i

  • n
  • r

b i n a r y w h i c h h a v e a l r e a d y b e e n c

  • m

p i l e d

  • p

a c k a g e s a r e m a i n t a i n e d a c c

  • r

d i n g t

  • a

p

  • l

i c y m a n u a l

u p s t r e a m ” i s m

  • d

i f i e d a s n e c e s s a r y t

  • e

n s u r e c

  • m

b i n a t i

  • n

s

  • f

p a c k a g e s a r e c

  • m

p a t i b l e a n d a c t c

  • n

s i s t e n t l y

  • m

e t a d a t a a s s

  • c

i a t e d w i t h e a c h p a c k a g e i d e n t i f i e s v e r s i

  • n

, d e p e n d e n c i e s , c h e c k s u m / s i g n a t u r e

  • p

a c k a g e m a n a g e r h a n d l e s i n s t a l l i n g , s m a r t u p g r a d i n g (

  • r

d e r

  • f
  • p

e r a t i

  • n

s ) , c

  • n

f i g u r i n g , a n d r e m

  • v

i n g s

  • f

t w a r e

  • b

l u r s t h e b

  • u

n d a r i e s b e t w e e n

  • p

e r a t i n g s y s t e m a n d a p p l i c a t i

  • n

s O S i s i t s e l f – a b u n c h

  • f

p a c k a g e s

  • s

a v e s d i s k s p a c e a n d m e m

  • r

y s p a c e b e c a u s e s

  • f

t w a r e c a n u s e s h a r e d l i b r a r i e s

  • p
  • s

s i b l y t h e g r e a t e s t f e a t u r e

  • f

U n i x d i s t r i b u t i

  • n

s , e s p e c i a l l y G N U / L i n u x

slide-2
SLIDE 2

A s c

  • m

p a r e d w i t h a n i n s t a l l e r ( “ W i n d

  • w

s ” ) :

  • p

a c k a g e m a n a g e m e n t : s i n g l e i n s t a l l a t i

  • n

d a t a b a s e m a n a g e d t h e s a m e w a y b y

  • p

e r a t i n g s y s t e m

  • i

n s t a l l e r : e a c h p r

  • g

r a m m a n a g e s i t s

  • w

n i n s t a l l a t i

  • n

i n i n c

  • n

s i s t e n t w a y s , p

  • s

s i b l y r e c

  • r

d i n g t h i s i n f

  • r

m a t i

  • n

i t s

  • w

n f

  • r

m a t

  • i

n s t a l l e r s t e n d t

  • b

e b u g g i e r , b u t m

  • r

e u p

  • t
  • d

a t e s i n c e t h e y a r e p r e p a r e d a s p a r t

  • f

t h e “ u p s t r e a m ” s

  • f

t w a r e

  • p

a c k a g e m a n a g e r s c a n k e e p t r a c k

  • f

a l l i n s t a l l e d s

  • f

t w a r e , f i n d u p d a t e s , m a k e c l e a n r e m

  • v

a l s , b u t t h e y c a n l a g b e h i n d , w h i c h i s n

  • t

n e c e s s a r i l y a b a d t h i n g ( w i t h f e a t u r e s c

  • m

e b u g s )

  • M

i c r

  • s
  • f

t n

  • w

r e c

  • m

m e n d s M S I ( W i n d

  • w

s I n s t a l l e r f

  • r

m a t ) , w h i c h i s a p a c k a g e s y s t e m w i t h

  • u

t t h e c e n t r a l r e p

  • s

i t

  • r

y t

  • f

e t c h , i n s t a l l , a n d u p d a t e f r

  • m

D e b i a n p a c k a g e m a n a g e m e n t :

  • r
  • b

u s t p a c k a g e m a n a g e m e n t i n t r

  • d

u c e d i n 1 9 9 3 w i t h D e b i a n , a G N U / L i n u x d i s t r i b u t i

  • n

t h e u n i v e r s a l O S ( f l e x i b l e a n d p

  • w

e r f u l ) –

  • s
  • u

r c e a n d b i n a r y p a c k a g e s : y

  • u

c a n m

  • d

i f y s

  • u

r c e p a c k a g e s , a n d b u i l d b i n a r y p a c k a g e s ( * . d e b a r c h i v e s ) f

  • r

d i f f e r e n t a r c h i t e c t u r e s a n d k e r n e l s , w h i c h a r e a c t u a l l y u s e d f

  • r

f a s t a n d c l e a n i n s t a l l a t i

  • n

s

  • t

y p e s

  • f

d e p e n d e n c i e s ( b y n a m e a n d v e r s i

  • n

)

  • b

u i l d : r e q u i r e d d e p e n d e n c i e s f

  • r

c

  • m

p i l i n g s

  • u

r c e p a c k a g e s ( e . g . , g c c )

  • d

e p e n d s : r e q u i r e d d e p e n d e n c i e s f

  • r

i n s t a l l a t i

  • n

s ( e . g . , l i b c )

  • r

e c

  • m

m e n d s : r e c

  • m

m e n d e d d e p e n d e n c i e s ( a p t / a p t i t u d e i n s t a l l s b y d e f a u l t )

  • s

u g g e s t s : s u g g e s t e d p a c k a g e s

  • a

l s

  • b

r e a k s , c

  • n

f l i c t s , p r

  • v

i d e s , r e p l a c e s

  • d

i f f e r e n t p a c k a g e v e r s i

  • n

s f

  • r

d i f f e r e n t r e l e a s e s

  • f

D e b i a n O S

  • u

p g r a d e f r

  • m

r e l e a s e t

  • r

e l e a s e b y u p g r a d i n g p a c k a g e s

  • d

p k g : l

  • w
  • l

e v e l D e b i a n p a c k a g e m a n a g e r a n d p a c k a g e f

  • r

m a t

  • a

p t i t u d e / a p t : a d d n e t w

  • r

k e d c a p a b i l i t y t

  • s

e a r c h , f e t c h , a n d i n s t a l l

  • r

u p g r a d e f r

  • m

p a c k a g e s a v a i l a b l e t h r

  • u

g h t h e D e b i a n a r c h i v e s s p e c i f i e d i n s

  • u

r c e . l i s t f i l e W h y c

  • m

p i l e :

  • e

v e n w i t h b i n a r y p a c k a g e m a n a g e m e n t , y

  • u

m a y n e e d a n e w e r v e r s i

  • n

w h i c h i s u n a v a i l a b l e ( h a s n ' t y e t b e e n p a c k a g e d )

  • r

y

  • u

m a y n e e d t

  • a

p p l y a p a t c h f

  • r

f u r t h e r c u s t

  • m

i z a t i

  • n
  • r

b u g f i x e s

  • p

a c k a g i n g s

  • f

t w a r e , i . e . , d e v e l

  • p

i n g p a c k a g e s , i n v

  • l

v e s c

  • m

p i l i n g s

  • f

t w a r e , t h e n m

  • r

e , s

  • D

e b i a n d e v e l

  • p

e r s k n

  • w

d e p e n d e n c y h e l l w e l l t

  • s

a v e u s f r

  • m

i t S

  • f

t w a r e f r e e d

  • m

:

  • s
  • f

t w a r e t h a t c a n b e f r e e l y r u n , s t u d i e d , m

  • d

i f i e d , a d a p t e d , i m p r

  • v

e d , c

  • p

i e d , d i s t r i b u t e d , a n d r e d i s t r i b u t e d

  • i

n c

  • n

t r a s t , p r

  • p

r i e t a r y s

  • f

t w a r e i s r e s t r i c t e d b y c

  • p

y r i g h t a n d c

  • n

t r a c t s ( N D A s , E U L A s )

  • a

k a

  • p

e n s

  • u

r c e , a c c e s s t

  • s
  • u

r c e c

  • d

e i s a p r e r e q u i s i t e

  • p

a c k a g e m a n a g e m e n t “ d e p e n d s ”

  • n

f r e e s

  • f

t w a r e b e c a u s e s

  • f

t w a r e i s p a c k a g e d a n d p a t c h e d i n s

  • u

r c e f

  • r

m , c a n b e c

  • m

p i l e d f

  • r

d e s i r e d a r c h i t e c t u r e , w i t h s h a r e d l i b r a r i e s , e t c .

slide-3
SLIDE 3

U s e f u l c

  • m

m a n d s :

  • d

p k g

  • i

: i n s t a l l a D e b i a n b i n a r y p a c k a g e f i l e ( t y p i c a l l y h a n d l e d t h r

  • u

g h a p t i t u d e )

  • d

p k g

  • l

: l i s t a l l m a n a g e d p a c k a g e s

  • r

s p e c i f i e d p a c k a g e ( d

  • e

s n

  • t

i n c l u d e a v a i l a b l e p a c k a g e s , t h

  • s

e a r e n

  • t

h a n d l e d b y l

  • w
  • l

e v e l d p k g ) , s t a t u s , a n d v e r s i

  • n
  • d

p k g

  • L

: l i s t f i l e s i n s t a l l e d ( p r

  • v

i d e d b y ) f r

  • m

s p e c i f i e d p a c k a g e

  • d

p k g

  • S

: f i n d p a c k a g e w h i c h p r

  • v

i d e s a f i l e

  • a

p t i t u d e u p d a t e : u p d a t e l

  • c

a l c a c h e

  • f

a v a i l a b l e p a c k a g e s

  • a

p t i t u d e u p g r a d e : f e t c h a n d u p g r a d e t

  • l

a t e s t a v a i l a b l e a l l

  • r

s p e c i f i e d p a c k a g e s ( r u n a p t i t u d e u p d a t e t

  • u

p d a t e c a c h e f i r s t )

  • a

p t i t u d e i n s t a l l : f e t c h a n d i n s t a l l p a c k a g e f r

  • m

r e p

  • s

i t

  • r

y