/srv/irclogs.ubuntu.com/2009/05/15/#ubuntu-classroom.txt

bodhi_zazenpackage management 10 min ?00:54
bodhi_zazenanyone here for packagemanagemt ?00:54
nhandlero/00:55
d0htem:o00:56
bodhi_zazennhandler: you could probably do better then I in this discussion, so feel free to add in as the time comes :)00:56
=== nhandler changed the topic of #ubuntu-classroom to: Ubuntu Classroom || https://wiki.ubuntu.com/Classroom || https://lists.ubuntu.com/mailman/listinfo/ubuntu-classroom || Currently: Package Management (Installing software) 00:00 - 01:00 UTC (bodhi_zazen) || Upcoming: || Run 'date -u' in a terminal to find out the UTC time
* alexbobp manages Daisuke_Ido's package00:59
WastePotatoWat.00:59
alexbobpWastePotato: I'm just getting ready for the class01:00
bodhi_zazenanyone want to see command line stuff with a shared session ?01:00
bodhi_zazenwill save that for the end :)01:00
d0htemshared ssh?01:00
bodhi_zazenyes d0htem :)01:00
bodhi_zazenssh + screen01:00
bodhi_zazenFirst, thank you all for coming01:00
bodhi_zazenIf you have any suggestions for topics, let me know :)01:01
d0htem!fix jaunty compiz configuration01:01
ubot2d0htem: Error: I am only a bot, please don't think I'm intelligent :)01:01
WastePotato?01:01
bodhi_zazenhttps://wiki.ubuntu.com/BeginnersTeam/FocusGroups/Education/Proposals01:01
bodhi_zazenFYI, the long term goal is to establish Ubuntu Education01:01
bodhi_zazenWe have started the Ubuntu Community Learning Project01:02
bodhi_zazenhttps://wiki.ubuntu.com/Learning01:02
bodhi_zazen:)01:03
bodhi_zazenOK, package management01:03
bodhi_zazenthis session is aimed at new users, although if it is too basic we can get into the nitty-gritty :)01:03
Joeb454jacob: way to be late01:03
bodhi_zazennew users are often overwhelmed, and one of the FAQ is how to install things01:04
jacobJoeb454: it's how the cool kids roll01:04
bodhi_zazenShould be obvious, but they get caught up in tar balls fast :)01:04
bodhi_zazenThere are many ways of installing software, known as packages01:04
bodhi_zazenIf you are new to Ubuntu, and even if you are not, use the repositories (which we will cover).01:05
bodhi_zazenThe repositories are pre-built binary packages01:05
bodhi_zazenreference : https://help.ubuntu.com/community/InstallingSoftware01:06
bodhi_zazenSo let's discuss how to install packages using graphical tools :)01:06
bodhi_zazenI am a BIG fan of Synpatic01:06
bodhi_zazenhttps://help.ubuntu.com/community/SynapticHowto01:07
bodhi_zazenAlternates include "Add/Remove"01:07
bodhi_zazenalthough personally I find Add/Remove is not as good as synaptic, especially when searching for packages.01:08
bodhi_zazenKubuntu uses Adept - similar comments :)01:08
bodhi_zazenAdd/Remove is in your menu, lol01:08
bodhi_zazenOK, brief overview / side track :)01:09
bodhi_zazenWhere do packages come from ?01:09
bodhi_zazena question every parent dreads :)01:09
bodhi_zazenPackages come from source code01:10
bodhi_zazenthe source coed is compiled into binaries by the ubuntu developers and the MOTU (over simplification, sorry)01:10
bodhi_zazenThe binaries are stored in the Repositories, or collections of packages01:11
bodhi_zazenhttps://help.ubuntu.com/community/Repositories/Ubuntu01:11
bodhi_zazenPackages have some housekeeping we will not be discussing in detail at the moment01:11
bodhi_zazenDevelopers "sign" the packages (security issues)01:12
bodhi_zazenhttps://help.ubuntu.com/community/SecureApt01:12
bodhi_zazenApt is the "Back end"01:13
bodhi_zazenApt is used to track packages and dependencies01:13
bodhi_zazenA dependency is requirements01:13
bodhi_zazenfor example, say you wish to run Firestarter01:14
bodhi_zazen(bad example I know)01:14
bodhi_zazenYou need to have (among other things) iptables and X (a graphcial system) as Firestarter is a graphical system01:14
bodhi_zazenIn the good old days, before package management, you would have to find all these dependencies for yourself01:15
bodhi_zazenNow Apt, and thus apt-get, aptitude, Synaptic, Adept, Add/Remove track all this for you :)01:15
bodhi_zazenMajor advantage of Ubuntu, especially for new users01:15
bodhi_zazenWith me so far ?01:16
bodhi_zazenSo let us return to installing a package foo01:16
bodhi_zazenAssuming foo is in the Ubuntu Repositories you can install foo with a graphical front end01:16
bodhi_zazenAnd all the dependencies will be installed for you01:17
bodhi_zazenYou can use the graphical front end to manage repositories01:17
bodhi_zazenAnd remove the package as well01:17
bodhi_zazenSo ... Where does a package go ?01:17
bodhi_zazenIn Windows programs typically go into Program Files, organized by Program01:18
bodhi_zazenIn Linux the files system is organized differently01:18
bodhi_zazenso ..01:18
bodhi_zazenthe binary itself goes into /bin (or /usr/bin or /sbin ... )01:18
bodhi_zazenThe config files go in /etc01:19
bodhi_zazenthe user files go in $HOME01:19
bodhi_zazenthe man pages go with the other man pages01:19
bodhi_zazenSo if you understand the basics of the Linux File System / tree you know where packages go :)01:19
bodhi_zazenOverview of the repositories ?01:20
bodhi_zazenhttps://help.ubuntu.com/community/Repositories/Ubuntu01:21
bodhi_zazenWhen you first install Ubuntu, not all of the repositories are "acitve"01:21
bodhi_zazenTypically Main01:21
bodhi_zazenOne then adds Restricted Universe and Multiverse01:22
bodhi_zazenThe exact mechanics of adding a repository vary by the tool you are using and is covered in detail here : https://help.ubuntu.com/community/Repositories/Ubuntu01:22
bodhi_zazenI mention that as one of the other FAQ new users have is what to do when an application is not found in Add/Remove etc01:23
bodhi_zazenand the most common reason for that is the Universe / Multivers repositories are not active01:23
bodhi_zazenOne can manually activate repositories by editing /etc/apt/sources.list01:24
bodhi_zazenand removing # at the front of lines or adding lines01:24
bodhi_zazenNext installing 3rd party applications .deb etc01:24
bodhi_zazenFirst, security - do not install application from untrusted sources :)01:25
nhandlerAs a note, if you edit /etc/apt/sources.list by hand, remember to run 'sudo apt-get update' to cause your changes to take effect01:25
bodhi_zazenSecond, just because it is a .deb does NOT mean you can install it on Ubuntu01:25
bodhi_zazenAnd third, you can not mix and match repositories at will01:25
bodhi_zazenby that I mean, although Ubuntu is based on Debian , you can not simply add the debian repositories01:26
bodhi_zazenlikewise you can not mix 9.04 repositories with 8.04 :)01:26
bodhi_zazenIf you mix repositories you can try something like pinning : https://help.ubuntu.com/community/PinningHowto01:27
bodhi_zazenbe warned , you can not simply use pinning either, pinning can cause breakage01:27
bodhi_zazenIMO, rather then using 3rd party .deb or pinning you are best off building from source01:28
bodhi_zazenI will leave building from source for another day :)01:28
bodhi_zazenThe good news, with the sheer size of the Ubuntu repositories it is rare you need to build from source01:28
bodhi_zazenI am going to move to command line next01:29
bodhi_zazenquestions about basic packages / dependencies / graphical front ends ?01:29
bodhi_zazenIf not, do you want a demo on a shared ssh session ?01:29
bodhi_zazen-- Questions please --01:30
d0htemhow do packages get added to repository01:30
bodhi_zazendepends on the repository01:30
d0htemwhy arent they allways uptodate and how can we help, to do that in example nmap01:30
bodhi_zazenhow general are you asking ?01:30
bodhi_zazenhow do you get a package into the repositories ?01:30
d0htemyes!01:31
bodhi_zazenWell, in general , a 3rd party application such as nmap => MOTU :)01:31
kklimondanmap is in main01:31
st33medd0htem, submit the package's lp info to a MOTU person, and he might consider it01:32
bodhi_zazenIf the package is in main then it is the Canonical developers01:32
Daisuke_Idothen there are personal package archives01:32
bodhi_zazenIn general01:32
bodhi_zazenA package gose through testing01:32
bodhi_zazen*goes*01:32
jacobbodhi_zazen: not necessairily canonical, but ~ubuntu-core-dev01:32
bodhi_zazenLet us use mother Debian as an example01:32
DasEiman dpkg is a good hint for checking deb's01:32
bodhi_zazenyou have debian stable01:32
bodhi_zazenthose packages are older, and, as the name implies, stable01:33
bodhi_zazenbugs have been tested and worked out01:33
bodhi_zazenA new package or version comes along01:33
bodhi_zazenIt goes first into Unstable01:33
bodhi_zazenpeople test it and it then goes into testing01:34
bodhi_zazenas it is further tested it finds it's way into stable01:34
bodhi_zazenIs that general enough for everyone ?01:34
d0htemyes thank you very much01:34
bodhi_zazenUbuntu takes a snapshot of testing => fixes bugs => release every 6 months01:34
bodhi_zazenSo if you want to help -> participate in testing and bug reports01:35
bodhi_zazenor join one of the development teams01:35
bodhi_zazenbut is it no simply compile an updated binary and release it :)01:35
st33medAt the time of the final release candidate, all repositories are 'frozen', meaning no major version updates are applied01:35
* st33med just adding two cents01:36
bodhi_zazenthanks :)01:36
bodhi_zazenit is a broad question01:36
bodhi_zazenIn general updated packages go through testing before they make it into the repositories01:36
bodhi_zazenWhile we are on that subject :)01:36
bodhi_zazenHow often to update your system ?01:37
bodhi_zazenNew users often update daily01:37
st33medEvery five seconds01:37
st33med:)01:37
bodhi_zazenjust keep in mind , a chance to update is a chance to break01:37
* st33med shuts up01:37
bodhi_zazenSo, before you update :)01:37
bodhi_zazen1. Ask yourself, do you need said updated package ?01:37
bodhi_zazen2. i look on the forums, are there threads like "todays update broke X" ?01:38
bodhi_zazen3. Look at the list of packages to be updated01:38
bodhi_zazenI advise security updates daily01:38
bodhi_zazenThe rest I do once a week at most01:38
bodhi_zazenSometimes , on servers, once every 3 months01:39
bodhi_zazen>:)01:39
st33medbad bodhi_zazen01:39
bodhi_zazendepends on what will happen if an update breaks a system01:39
bodhi_zazenDesktops do not matter01:39
bodhi_zazenServers sometimes do01:39
bodhi_zazenLOL statik01:39
bodhi_zazenst33med: :)01:40
st33med:D01:40
bodhi_zazennewer is not always better, and sometimes one trades stability for older packages01:40
bodhi_zazenOf course I update my test installs in a VM daily01:40
bodhi_zazenbut if a VM breaks, no big deal01:40
bodhi_zazenOK, command line then ?01:40
st33medSure \o/01:41
bodhi_zazenYou can update with01:41
bodhi_zazenapt-get update01:41
bodhi_zazenapt-get upgrade01:41
bodhi_zazenIf a package is held back, try01:41
bodhi_zazenapt-get dist-upgrade01:41
Daisuke_Idojust make sure to cover apt-cache - the single easiest way to search for and get info on packages01:41
bodhi_zazenYou can install a .deb, like say virtualbox, with dpkg01:42
bodhi_zazendpkg -i Virtualbox.bed01:42
bodhi_zazen*deb01:42
bodhi_zazenThat will fail if you have unmet dependencies ...01:42
bodhi_zazenso ...01:42
bodhi_zazenapt-get -f01:42
st33medUsually, the only time you have a held back package is a pinned package or you are in a pre-RC version of Ubuntu01:42
bodhi_zazenapt-get -f install01:42
bodhi_zazenwill install dependencies , then finish installing VirtualBox01:42
bodhi_zazenapt-get must of course be run as root , so sudo apt-get ...01:43
bodhi_zazenor sudo -i01:43
bodhi_zazenor make an alias :)01:43
bodhi_zazenFor information on packages you have apt-cache (which can be run as a regular user)01:44
bodhi_zazenapt-cache search foo01:44
bodhi_zazenwill tell you all about package foo01:44
bodhi_zazenand then there is also dpkg01:44
bodhi_zazendpkg -l01:44
bodhi_zazenwill list all installed packages :)01:44
bodhi_zazenyou can also use aptitude, similar to apt-get01:45
bodhi_zazenaptitude install foo01:45
bodhi_zazenyou can use apt-get to build from source if you like as well :)01:47
bodhi_zazenit will use the Ubuntu source code, in the deb-src repositories01:47
bodhi_zazenteh ubuntu source code is often patched :)01:47
bodhi_zazenapt-get will even handle dependencies for that as will01:48
franki^is there any advantage to doing that?01:48
bodhi_zazenIn general no franki^01:49
bodhi_zazenBUT sometimes you need or want to say apply a patch01:49
bodhi_zazenor modify the source code yourself01:49
bodhi_zazennhandler: ??01:50
bodhi_zazenanything to add ?01:50
st33medapt-get moo01:50
st33med:)01:50
bodhi_zazenWe have 10 minutes left and I would like to stop to answer questions ...01:50
bodhi_zazenThis was kind of a lightning overview of package management , lol01:51
st33med--- QUESTIONS ---01:51
jacobone thing i would like to point out, universe + restricted are enabled by default on new installs (not sure if multiverse is or not)01:52
wirechiefbodhi_zazen: can you discuss the use of  sudo dpkg --remove --force-depends bar01:52
wirechiefbodhi_zazen: for fixing broken packages01:53
bodhi_zazenWell, first, when removing a package01:53
bodhi_zazenyou01:53
bodhi_zazenapt-get remove foo01:53
bodhi_zazenThat *should* remove dependencies01:53
bodhi_zazenapt-get remove --purge foo01:53
bodhi_zazenremoves foo and config files01:53
bodhi_zazenbut NOT config files in $HOME01:54
bodhi_zazenSometimes not all the dependencies are removed01:54
bodhi_zazenyour system will notify you, in which case01:54
bodhi_zazenapt-get autoremove01:54
bodhi_zazenFixing broken packages can be tough :)01:55
d0htemdoesnt apt-get -f do the same as dpkg --remove01:55
bodhi_zazenI do not think so d0htem01:55
bodhi_zazenapt-get -f = force or fix broken01:55
DasEihow do I get the *deb name of a package, let's say firefox ?01:56
bodhi_zazenapt-cache serarch firefox01:56
st33medDasEi, it usually has a .deb at the end or some version numbers at the end + a deb01:56
bodhi_zazendpkg --remove --force-depends will remove foo and it's depencencies01:56
DasEiI try to list ff's dependencies, like in this (outdated) sample : dpkg-deb -I packages/firefox_1.5.dfsg+1.5.0.1-1ubuntu12_i386.deb01:57
bodhi_zazenapt-cache showpackage firefox01:57
DasEiah..01:58
wirechiefi had to use this; alternating with dpkg- --force-depends  packagename  then apt-get -f install  until i finally got all the broken packages removed01:58
d0htemshowpkg?01:58
bodhi_zazenyes01:58
bodhi_zazensorry01:58
bodhi_zazenapt-cache showpkg firefox                      05/14/09  6:58 PM Package: firefox Versions:  Reverse Depends:   xfig-doc,firefox   webhttrack,firefox   screenlets,firefox   openoffice.org,firefox   nip2,firefox   mozilla-plugin-pcmanx,firefox   mozilla-openoffice.org,firefox   mozilla-nukeimage,firefox   mozilla-noscript,firefox   mozilla-imagezoom,firefox01:58
DasEithatdid the trick, thx01:59
bodhi_zazenWell, if you have broken packages you can be in serious trouble01:59
bodhi_zazenusually happens when installing 3rd party .deb02:00
* wirechief had a package of bandaids with me02:00
bodhi_zazenWhich gets back to , just because it is a .deb does not mean you should install it :)02:00
wirechiefbodhi_zazen: well this was with using karmic (it will break things atm)02:00
st33medIt could be a Debian .deb and break the system02:01
bodhi_zazenlol wirechief :)02:01
bodhi_zazenmixed repositories or pinning ?02:01
bodhi_zazenOur time is up :(02:01
bodhi_zazenI hope this was not too fast of an overview02:02
wirechiefbodhi_zazen: actually have done the update-manager -d to get karmic, i am trying to get the leading edge fix02:02
wirechieffor my intel02:02
bodhi_zazenpackage management can get complicated fast02:02
bodhi_zazenAh :)02:02
DasEiwas more then that, nice02:02
wirechiefbodhi_zazen: i am basically testing freeze issues with intel and giving as much feedback to the people who are tracking the bug02:03
bodhi_zazenThe intention of these sessions is education and if you all have a topic please add it to the list02:04
bodhi_zazenhttps://wiki.ubuntu.com/BeginnersTeam/FocusGroups/Education/Proposals02:04
wirechiefbodhi_zazen: thank you for your classroom session i plan on saving if for future references..02:04
bodhi_zazenObviously we can talk a whole hour on some of these topics :)02:04
bodhi_zazenwe could do a session on installing from source :)02:05
wirechief;)02:05
bodhi_zazena whole session on testing / adding packages to Ubuntu , etc02:05
st33medbodhi_zazen, from a .tar or repository? Or both?02:05
bodhi_zazeni was thinking both statik02:06
bodhi_zazenst33med: :)02:06
st33med:D02:06
d0htemauto-complete for the lose :p02:06
bodhi_zazenfirst from repositories02:06
bodhi_zazenthen resolving dependencies02:06
bodhi_zazenfoo-dev02:06
bodhi_zazenbuild-essential02:06
bodhi_zazenand then .tar.gz02:06
bodhi_zazenof course that leads to things like gcc ... >:)02:07
bodhi_zazenOK, meet again in 2 weeks02:07
=== nhandler changed the topic of #ubuntu-classroom to: Ubuntu Classroom || https://wiki.ubuntu.com/Classroom || https://lists.ubuntu.com/mailman/listinfo/ubuntu-classroom || Upcoming: 21st May, 18:00 UTC: Reviewing New Packages (mok0), 28th May, 00:00 UTC: Packaging Using CDBS (nhandler) || Run 'date -u' in a terminal to find out the UTC time
bodhi_zazenI shall consider installing form source unless there are other suggestions :)02:07
bodhi_zazennhandler: sorry if I botched package management too much :)02:08
nhandlerNo, you did a very nice job bodhi_zazen02:08
st33medIt's my fault XD02:08
d0hteminstalling from source!! plz02:08
wirechiefbodhi_zazen:  i would like to see a course on compiling alsa driver  for sound, many need updated drivers for their sound to work after upgrading or installing ubuntu new.02:08
nhandlerIt is difficult explaining package management in simple language02:08
bodhi_zazenOK next session - to the source :)02:09
bodhi_zazenI have to run, family time :)02:09
bodhi_zazenthank you everyone02:09
wirechiefthanks bodhi_zazen02:10
st33medSay hey to the kiddos :D02:10
bodhi_zazenI think I need to bite off smaller topics and leave more time for questions :p02:10
wirechief;)02:10
* st33med thinks about setting up a Python tutorial again...02:10
d0htemto hell with py!02:10
st33medHISSS02:10
d0htem.rb for the win02:11
st33med.py ftw02:11
d0htemdie02:11
st33medno u02:11
Daisuke_Idonice one st33med, you killed him.02:17
st33medyay02:17
witcherwhat is this room for? classes or queations02:50
perlluverclasses mainly, I believe02:50
witcheroh ok ty02:50
perlluveryw02:50
witcherdo you know what kind of classes02:50
perlluvera little bit of everything02:51
perlluverhttps://wiki.ubuntu.com/Classroom02:51
witcherkk02:51
perlluverthat might explain it better02:51
witcherk ty again02:51
perlluverno problem02:51
witcher i just installed ubuntu 2 days ago lol02:51
perlluverah, congrats02:52
witcherso far i like it better than xp02:52
witcherty02:52
witcherits just so differant02:52
perlluverit is02:52
perlluveryou will get used to it eventually02:52
witcheri am running dual OS02:52
witcheri hope so02:52
perlluverthat is good02:52
witcheri run xp for gamming lol02:53
perlluverif you don't like it you can always go back02:53
witchertrue02:53
perlluverI used to, but I have been all Linux for about 3 years now02:53
witcherwow02:53
perlluveryeah it has been a fun ride02:53
witcherthis installing is mostly waht gets me stuck02:53
witcherits differant02:54
perlluverit got me at first, but I have tried so many systems, that I can install without blinking now02:54
nhandlerYou guys might want to move this conversation to a different channel02:54
perlluversorry nhandler02:54
witchersorry02:54
witcherty for the link perl02:55
perlluveryw02:55
=== mimir|zZz is now known as mimir|on
=== ejat is now known as e-jat
=== redarrow_ is now known as redarrow
=== ejat is now known as e-jat

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!