SlideShare uma empresa Scribd logo
1 de 43
Repositórios do Ubuntu, Santo aptget e Outras Coisas
~$ whoami
Instalação de programas de forma
descomplicada e segura no linux.

Não, não estamos falando de next,
next, to finish!
APT-GET é uma forma rápida,
prática e eficiente de se instalar
pacotes, gerenciar suas
dependências automaticamente e
manter os arquivos de configuração
em ordem.
Vamos bater um papo sobre o
Advanced Packaging Tool e como
ele torna o linux simples até para a
sua avó usar!
8- Comandos de instalação
1- A quem se destina a
Palestra?
2- Um pouco da minha
história com linux
3- É programador? Arruma
a minha impressora?
4- Avós usam linux
5- O que é o apt-get?
6- Um pouco sobre
repositórios
7- sources.list

9- Comandos de
manutenção
10- Comandos para
remoção
11- Comandos de busca
12- tips
13- Perguntas e
Contatos
A quem se destina esta palestra?
Who is there?
No, I'll not fix your computer!
Fácil que até a sua avó usa
Bro.
O que é o apt-get?
Introduction to APT
"In the beginning there was the .tar.gz. Users had to compile each
program that they wanted to use on their GNU/Linux systems.
When Debian was created, it was deemed necessary that the
system include a method of managing the packages installed on
the machine. The name dpkg was given to this system. Thus the
famous 'package' first came into being on GNU/Linux, a while
before Red Hat decided to create their own 'rpm' system.
A new dilemma quickly took hold of the minds of the makers of
GNU/Linux. They needed a rapid, practical, and efficient way to
install packages that would manage dependencies automatically
and take care of their configuration files while upgrading. Here
again, Debian led the way and gave birth to APT, the Advanced
Packaging Tool, which has since been ported by Conectiva for use
with rpm and has been adopted by some other distributions."
-- From Debian APT HOWTO
Repositórios

Main - Officially supported software.
Restricted - Supported software that is not available under a
completely free license.
Universe - Community maintained software, i.e. not officially
supported software.
Multiverse - Software that is not free.
Repositórios
/etc/apt/source.list
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Beta i386 (20120421)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

deb: These repositories contain binaries or precompiled packages. These repositories are required for most users.
deb-src: These repositories contain the source code of the packages. Useful for developers.
http://archive.ubuntu.com/ubuntu: The URI (Uniform Resource Identifier), in this case a location on the internet. See the
official mirror list or the self-maintained mirror list to find other mirrors.
hardy is the release name or version of your distribution.
main & restricted are the section names or components. There can be several section names, separated by spaces.
Adicionar repositório

sudo add-apt-repository ppa:cpug-devs/ppa
sudo apt-get update
sudo apt-get install cpu-g
<Comandos de Instalação>

~$ sudo apt­get install <package_name>

~$ sudo apt­get build­dep <package_name>

~$ sudo apt­get install <package1_name> <package2_name> <package3_name>
<Comandos de Manutenção>
~$ sudo apt­get update

(atualiza source list)

~$ sudo apt­get upgrade

(pacotes instalados)

~$ sudo apt­get dist­upgrade

~$ sudo apt­get check

(distro)

(dependências quebradas)
<Comandos de Manutenção>
~$ sudo apt­get ­f install (fix broken dependencies)

~$ sudo apt­get autoclean

~$ sudo apt­get clean

(remove .deb velhos)

(remove *.deb)

~$ du ­sh /var/cache/apt/archives
<Comandos de Remoção>
~$ sudo apt­get remove <package_name>

~$ sudo apt­get purge <package_name>

~$ sudo apt­get autoremove

(cfg files too)
<Comandos de Busca>
~$ apt­cache search <search_term>

~$ apt­cache show <package_name>

(descrição)

~$ apt­file search <file_name>  (Qual pkg contém file?)

~$ apt­cache pkgnames

(* pkgs instalados)
Remover com um hadouken:
●

apt-get --purge remove nomedoprograma
Fazer isso regularmente não dói:

●

apt-get update
Visualizar o que está sendo atualizado:

●

apt-get -u upgrade
(mas não esqueça do update antes)
Pesquisar apenas nos nomes dos pacotes:

●

apt-cache search -n stringdebusca
Checar versão disponível e em qual respositório:

●

apt-cache policy nomedopacote
¡Gracias!
¿Tiene alguna pregunta?
Twitter

@ileopoldes

E-mail / g+

leopoldes@gmail.com

Github

https://github.com/ileopoldes

Linkedin

http://br.linkedin.com/in/paulobender

Facebook

ileopoldes

Skype

paulo_igor

Blog

paulobender.wordpress.com

Projetos

linkadu.com

Mais conteúdo relacionado

Destaque (8)

Το Ημερολόγιο του Γυμνασίου Περάματος για το 2014
Το Ημερολόγιο του Γυμνασίου Περάματος για το 2014 Το Ημερολόγιο του Γυμνασίου Περάματος για το 2014
Το Ημερολόγιο του Γυμνασίου Περάματος για το 2014
 
Μικρασιατική Καταστροφή
Μικρασιατική  ΚαταστροφήΜικρασιατική  Καταστροφή
Μικρασιατική Καταστροφή
 
Tpe Etat Des Lieux 3.
Tpe Etat Des Lieux 3.Tpe Etat Des Lieux 3.
Tpe Etat Des Lieux 3.
 
Tpe Etat Des Lieux
Tpe Etat Des LieuxTpe Etat Des Lieux
Tpe Etat Des Lieux
 
מודיעין עסקי לתעשייה
מודיעין עסקי לתעשייהמודיעין עסקי לתעשייה
מודיעין עסקי לתעשייה
 
Piia finlandia
Piia finlandiaPiia finlandia
Piia finlandia
 
Presentation Intech 2003
Presentation Intech 2003Presentation Intech 2003
Presentation Intech 2003
 
Piia Seppänen, post doctoral researcher CELE, University of Turku,Finland
Piia Seppänen, post doctoral researcher CELE, University of Turku,FinlandPiia Seppänen, post doctoral researcher CELE, University of Turku,Finland
Piia Seppänen, post doctoral researcher CELE, University of Turku,Finland
 

Semelhante a Respositórios do Ubuntu, santo apt-get e outras coisas

Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
nejadmand
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
Joshua Thijssen
 
Intro To Linux
Intro To LinuxIntro To Linux
Intro To Linux
techlug
 
Como criar um repositório Ubuntu
Como criar um repositório UbuntuComo criar um repositório Ubuntu
Como criar um repositório Ubuntu
Carlos Eduardo
 
Linux Operating SystemMigration ProposalCMIT 391 - Section .docx
Linux Operating SystemMigration ProposalCMIT 391 -  Section .docxLinux Operating SystemMigration ProposalCMIT 391 -  Section .docx
Linux Operating SystemMigration ProposalCMIT 391 - Section .docx
washingtonrosy
 

Semelhante a Respositórios do Ubuntu, santo apt-get e outras coisas (20)

Ubuntu
UbuntuUbuntu
Ubuntu
 
Linuxconcepts
LinuxconceptsLinuxconcepts
Linuxconcepts
 
Ubuntu Workshop Kit - Study Material
Ubuntu Workshop Kit - Study MaterialUbuntu Workshop Kit - Study Material
Ubuntu Workshop Kit - Study Material
 
The Gory Details of Debian packages
The Gory Details of Debian packagesThe Gory Details of Debian packages
The Gory Details of Debian packages
 
Kernel Recipes 2013 - Easy rootfs using Buildroot
Kernel Recipes 2013 - Easy rootfs using BuildrootKernel Recipes 2013 - Easy rootfs using Buildroot
Kernel Recipes 2013 - Easy rootfs using Buildroot
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
Linux workshop
Linux workshopLinux workshop
Linux workshop
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 
Intro To Linux
Intro To LinuxIntro To Linux
Intro To Linux
 
Como criar um repositório Ubuntu
Como criar um repositório UbuntuComo criar um repositório Ubuntu
Como criar um repositório Ubuntu
 
Linux Beginner Guide 2014
Linux Beginner Guide 2014Linux Beginner Guide 2014
Linux Beginner Guide 2014
 
Linux
LinuxLinux
Linux
 
$ make install
$ make install$ make install
$ make install
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
 
Preparing_Your_Computer.pdf
Preparing_Your_Computer.pdfPreparing_Your_Computer.pdf
Preparing_Your_Computer.pdf
 
Linux Operating SystemMigration ProposalCMIT 391 - Section .docx
Linux Operating SystemMigration ProposalCMIT 391 -  Section .docxLinux Operating SystemMigration ProposalCMIT 391 -  Section .docx
Linux Operating SystemMigration ProposalCMIT 391 - Section .docx
 
Installing Software, Part 3: Command Line
Installing Software, Part 3: Command LineInstalling Software, Part 3: Command Line
Installing Software, Part 3: Command Line
 
I Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on LinuxI Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on Linux
 
Foss Presentation
Foss PresentationFoss Presentation
Foss Presentation
 
Linux Day2
Linux Day2Linux Day2
Linux Day2
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Respositórios do Ubuntu, santo apt-get e outras coisas

Notas do Editor

  1. Tela de espera antes da palestra
  2. Tela de abertura da palestra. - Boas vindas - Explicar a natureza da palestra (bate-papo) - Falar um pouco sobre motivo dos eventos (networking) - Tempo no final para perguntas, mas fiquem à vontade p/ compartilhar trocar ideias durante a talk
  3. Quem sou eu e por que eu estou aqui “Desenvolvedor de software, entusiasta de metodologias ágeis, graduando em Ciência da Computação na Unisinos. Profissional com experiência em diversas áreas do desenvolvimento de software. Atuou como analista de negócios, analista de sistemas, desenvolvedor e liderou equipes de desenvolvedores. Hoje se aventura no mundo das startups com o linkadu (www.linkadu.com). Geek, casado com uma bióloga, pai da Sofia e da Guiga. ” - Estou pagando uma dívida (primeira talk) - Compartilhar mesmo o pouco que se sabe
  4. Linhas gerais da talk
  5. - Usuário iniciante que está descobrindo o linux - Você que já usa linux a um tempo mas não teve muito tempo p/ entender como esse negócio de apt-get funciona - usuário ninja que veio ficar só tirando sarro do palestrante e tentando achar um furo na palestra p/ mostrar como é bom e que entende muito mais do que esse otário que está falando. - Sinalizar quando ficar um pouco complexo
  6. - Quem é usuário linux? Quem usa um debian like ou ubuntu? Quantos anos? - Quem trabalha comTI? Programador? Suporte? - Conhece apt-get ou outros sistemas de pacotes? - Primeiro contato com software livre?
  7. O que vocês estão fazendo em um sábado de manhã aqui? Vocês são um bando de nerds
  8. - Escola de informática instalaram linux (slackware) - Lendo how to - Instalação com disquetes
  9. Um pouco da minha experiência com diferentes distros
  10. Distro p/ toda a família. Não precisava brigar p/ configurar nada
  11. No I&apos;ll not fix your computer - Mas e como isso começa?
  12. Família. Todo mundo tem uma, sabe como é. Trabalho de graça, guri da informática
  13. Sabe como proteger o computador
  14. Tirar os vírus
  15. Deixá-lo realmente protegido
  16. Todo mundo feliz!
  17. Razão dos meus problemas
  18. Solução: trocar windows p/ ubuntu 1º Meu sogro 2º Minha mãe
  19. Claro, houve alguns problemas, mas tudo contornável
  20. Minha sogra e minha mãe são avós.
  21. - Como você instala um programa no windows? - Como encontra programas? - Aonde ele é instalado? - De que forma ele afeta o teu sistema? - Como você o mantém atualizado? - Como desinstala? - Como gerencia dependências?
  22. Dependências, acesso irrestrito ao S.O. entre outros problemas. Mas não sejamos injustos, no windows 8 melhorou
  23. Agora a tela é assim
  24. Apt-get moo
  25. O apt-get é um recurso desenvolvido originalmente para a distribuição Debian que permite a instalação e a atualização de pacotes (programas, bibliotecas de funções, etc) no Linux de maneira fácil e precisa.
  26. Ler
  27. Os repositórios ubuntu são organizados pela versão da distribuição. Por exemplo, os repositórios da versão Natty são armazenados nos subdiretórios natty, os repositórios da maverick são armazenados nos subdiretórios maverick. - Configurações do sistema/Programas e atualizações
  28. - PPA mais atualizados - Personal Package Archives, os repositórios deste tipo nada mais são do quer servidores na internet onde se encontram os programas que não estão nos repositórios oficias da sua distro. -
  29. Os repositórios ubuntu são organizados pela versão da distribuição. Por exemplo, os repositórios da versão Natty são armazenados nos subdiretórios natty, os repositórios da maverick são armazenados nos subdiretórios maverick.
  30. Vamos ver na sequência estes comandos. Estão aqui só p/ poder encerrar o assunto repositórios
  31. Devem ser rodados como root ou c/ privilégios de superusuário
  32. Devem ser rodados como root ou c/ privilégios de superusuário
  33. Devem ser rodados como root ou c/ privilégios de superusuário
  34. Devem ser rodados como root ou c/ privilégios de superusuário
  35. Devem ser rodados como root ou c/ privilégios de superusuário