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 i x s y s t e m a d m i n i s t r a t i o n D e C a l 2 0 1 2 - 1 0 - 0 8 M a k e i n s t a l l s u c k s : • n o t g u a r a n t e e d t o w o r k c o 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 o m p u t a t i o n a l ) • d i s o 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 o / u s r / l o c a l , b u t n o 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 o n s y s t e m , a n d p o s s i b l y o v e r w r i t e o r i n t e r f e r e w i t h o 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 o n ? W h a t i n s t a l l e d s o f t w a r e i s v u l n e r a b l e t o a e x p l o i t ? W h a t s o f t w a r e h a s a m a j o r b u g ? • m a k e u n i n s t a l l t a r g e t d o e s n ' t a l w a y s e x i s t o r w o r k c l e a n l y ◦ n e e d t o k e e p c o p y o f s o 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 o u s ◦ c h a i n s o 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 o 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 o 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 o m p a t i b l e , b u t n o s p e c i f i c “ c a n o n i c a l ” d o c u m e n t a t i o 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 o n o r i g i n a l s o f t w a r e ) U p g r a d i n g c o m p o u n d s p r o b l e m s : • – y o u n e e d t o k e e p t r a c k o 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 o k n o 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 o n s , w h i c h v u l n e r a b l e , i s i m p o r t a n t • y o u n e e d t o a g a i n i n s t a l l f e t c h , c o 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 o u n e e d t o e n s u r e c o 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 o t h e r s o 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 o 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 o n p r o v i d e s a c e n t r a l r e p o s i t o r y o 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 o 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 o b e c o m p i l e d d u r i n g i n s t a l l a t i o n o 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 o 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 o r d i n g t o a p o l i c y m a n u a l ◦ “ u p s t r e a m ” i s m o d i f i e d a s n e c e s s a r y t o e n s u r e c o m b i n a t i o n s o f p a c k a g e s a r e c o m p a t i b l e a n d a c t c o n s i s t e n t l y • m e t a d a t a a s s o 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 o 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 ( o r d e r o f o p e r a t i o n s ) , c o n f i g u r i n g , a n d r e m o v i n g s o f t w a r e • – b l u r s t h e b o u n d a r i e s b e t w e e n o 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 o n s O S i s i t s e l f a b u n c h o 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 o r y s p a c e b e c a u s e s o 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 o s s i b l y t h e g r e a t e s t f e a t u r e o f U n i x d i s t r i b u t i o n s , e s p e c i a l l y G N U / L i n u x
Recommend
More recommend