解説(人é)
ã³ãŒãã£ã³ã°ã¯ãšããããã³ã³ãã¥ãŒã¿ã«ã€ããŠã¯è©³ãããã ããªãããã€ã¯
人é
ubuntuã§ç¹å®ã®ããã±ãŒãžã ãã¢ããããŒãããã«ã¯ã©ãããã³ãã³ãã䜿ã£ããããã§ãã
Ubuntuã§ç¹å®ã®ããã±ãŒãžã®ã¿ãã¢ããããŒãããæ¹æ³ã¯ããã€ããããŸãã
1. apt
ã³ãã³ãã䜿ã:
sudo apt update
ã§ããã±ãŒãžãªã¹ããæŽæ°ããŸããsudo apt install -o APT::Update-Cache=true <ããã±ãŒãžå>
ã§ãæå®ããããã±ãŒãžã®ã¿ãã€ã³ã¹ããŒã«ïŒæŽæ°ïŒããŸãã
äŸ:
sudo apt update
sudo apt install -o APT::Update-Cache=true firefox
ãã®ã³ãã³ãã¯ãfirefox
ããã±ãŒãžã®ã¿ãææ°ã®ããŒãžã§ã³ã«æŽæ°ããŸãã APT::Update-Cache=true
ãªãã·ã§ã³ã¯ãããŠã³ããŒãæžã¿ã®ããã±ãŒãžã®ãã£ãã·ã¥ãåæ§ç¯ããããæ瀺ããããå¹ççãªæŽæ°ããã»ã¹ãå®çŸããŸãã
2. apt list --installed
ã³ãã³ãã䜿ã:
sudo apt list --installed
ã§ã€ã³ã¹ããŒã«ãããŠããããã±ãŒãžã®äžèŠ§ãååŸããŸãã- ãªã¹ãããã¢ããããŒããããããã±ãŒãžåã確èªããå
è¿°ã®
sudo apt install -o APT::Update-Cache=true <ããã±ãŒãžå>
ã³ãã³ãã䜿ããŸãã
3. è€æ°ã®ããã±ãŒãžããŸãšããŠã¢ããããŒããã:
- äžèšã®ã³ãã³ããçµã¿åããããã
apt
ã³ãã³ãã«è€æ°ã®ããã±ãŒãžåãæå®ããããšãã§ããŸããsudo apt install -o APT::Update-Cache=true firefox gedit thunderbird
äžèšã®äŸã§ã¯ãfirefox
, gedit
, thunderbird
ã®3ã€ã®ããã±ãŒãžã®ã¿ãææ°ããŒãžã§ã³ã«æŽæ°ããŸãã
ãã®ä»:
apt upgrade
ã³ãã³ãã¯ãã€ã³ã¹ããŒã«ãããŠãããã¹ãŠã®ããã±ãŒãžãææ°ã®ããŒãžã§ã³ã«ã¢ããããŒãããŸãããç¹å®ã®ããã±ãŒãžã ããæŽæ°ãããå Žåã¯äžèšã®æ¹æ³ã䜿çšããŠãã ããã- ããã±ãŒãžãããŒãžã£ãŒã®GUIã䜿çšããããšãå¯èœã§ããäŸãã°ãSoftware Centerãªã©ã§ããã±ãŒãžãéžæããã¢ããããŒããã¯ãªãã¯ããã ãã§ãã
泚æ:
- ã³ãã³ããå®è¡ããéã«ã¯ã
sudo
ã䜿çšããŠç®¡çè æš©éã§å®è¡ããããã«ããŠãã ããã
解説(人é)
ãªããåã£ãŠããããŸãèªåãaptã«ã¯ãããŸã詳ãããªãããã现ããæ£èª€ã¯åãããªãã£ããããã
人é
apt upgrade
ã§ã¯ããã±ãŒãžåãæå®ããããšã¯ã§ããªããã§ãã
ããã§ãããapt upgrade
ã§ã¯ç¹å®ã®ããã±ãŒãžåã ããã¢ããããŒãããããšã¯ã§ããŸããã
apt upgrade
ã¯ã ã·ã¹ãã ã«ã€ã³ã¹ããŒã«ãããŠãããã¹ãŠã®ããã±ãŒãž ãææ°ããŒãžã§ã³ã«æŽæ°ããã³ãã³ãã§ãã
ããã±ãŒãžåãæå®ããŠã¢ããããŒããããå Žåã¯ã sudo apt install -o APT::Update-Cache=true <ããã±ãŒãžå>
ã®æ¹æ³ã䜿çšããŸãã
äŸãã°ãfirefox
ããã±ãŒãžã®ã¿ãæŽæ°ãããå Žåã以äžã®ã³ãã³ããå®è¡ããŸãïŒ
sudo apt install -o APT::Update-Cache=true firefox
ãç解ããã ããã§ããããïŒ
人é
ããŒãžã§ã³çªå·ãæå®ããå Žåã¯ã©ããããããã§ãããããææ°ã§ã¯ãªã1ååã®ããŒãžã§ã³ã«ã¢ããããŒããããå ŽåãèããŠããŸã
apt
ã³ãã³ãã§ç¹å®ã®ããŒãžã§ã³ã«ããã±ãŒãžãæŽæ°ããããšã¯ãçŽæ¥çã«ã§ããŸããã
apt
ã¯éåžžãå
¬åŒãªããžããªããæäŸãããŠããææ°ã®å®å®çããã±ãŒãžãã€ã³ã¹ããŒã«ããããã«èšèšãããŠããŸãã
ãã ãã以äžã®æ¹æ³ã§ç¹å®ã®ããŒãžã§ã³ã«ã¢ããããŒãããããšãã§ããŸãïŒ
1. å€ãããŒãžã§ã³ã®ããã±ãŒãžãã¡ã€ã«ãããŠã³ããŒã:
ããªããæ±ããŠããæ§ããŒãžã§ã³ã®ããã±ãŒãžãã¡ã€ã«ãæ¢ãããšãã§ããŸãã(Ubuntuã®ããã±ãŒãžã¢ãŒã«ã€ããµã€ãããä¿¡é Œã§ãããœãããŠã§ã¢ãã£ã¹ããªãã¥ãŒã·ã§ã³ã®ãªããžããªãªã©)
ããŠã³ããŒãããããã±ãŒãžãã¡ã€ã«ãã€ã³ã¹ããŒã«ããã
sudo dpkg -i ããã±ãŒãžå_ããŒãžã§ã³çªå·.deb
2. ããã¯ããŒããªããžããªã䜿çš:
Ubuntuã«ã¯ãéå»ã®ããŒãžã§ã³ã®ããã±ãŒãžãåãããããã¯ããŒãããªããžããªããããŸãã
ãªããžããªãè¿œå ããå¿ èŠãªæ§ããŒãžã§ã³ã®ããã±ãŒãžãæ€çŽ¢ã»ã€ã³ã¹ããŒã«ããŸãã
- 泚æ: ããã¯ããŒããªããžããªã¯å ¬åŒã®ãªããžããªã§ã¯ãªããããå®å®æ§ã®åé¡ãããå¯èœæ§ããããŸããå©çšã«ã¯èªå·±è²¬ä»»ã§ãã
3. ããã±ãŒãžã®ãœãŒã¹ã³ãŒããããã«ã:
- ããã±ãŒãžã®ãœãŒã¹ã³ãŒããååŸããæåã§ã³ã³ãã€ã«ããŠç¹å®ã®ããŒãžã§ã³ãã€ã³ã¹ããŒã«ããŸãã
- ãã®æ¹æ³ã¯é«åºŠãªæè¡ç¥èãå¿ èŠã§ãã
ã©ã®æ¹æ³ãéžæãããã¯ãããªãã®ã¹ãã«ã¬ãã«ãšç¶æ³ã«ãã£ãŠç°ãªããŸãã
ãããå€ãããŒãžã§ã³ã®ããã±ãŒãžãã¡ã€ã«ãæ¢ãããå Žåã¯ã以äžã®ãããªããŒã¯ãŒããæ€çŽ¢ãããšåœ¹ç«ã€ãããããŸãã:
- â[ããã±ãŒãžå] å€ãããŒãžã§ã³â
- â[ããã±ãŒãžå] archiveâ
- â[UbuntuããŒãžã§ã³] ããã±ãŒãžãªã¹ãâ
解説(人é)
ããŒãžã§ã³æå®ã§ããæ°ããããã ãã©ãª
人é
apt upgrade
ã§ç¹å®ã®ããã±ãŒãžã ãã¢ããããŒããææ¢ããããšã¯ã§ããŸãã
ã¯ããapt upgrade
ã§ç¹å®ã®ããã±ãŒãžã®æŽæ°ãæå¶ããããšã¯å¯èœã§ãã
æ¹æ³:
apt-mark hold
ã³ãã³ãã䜿çšãã:apt-mark hold <ããã±ãŒãžå>
ã³ãã³ããå®è¡ããŠãæå®ããããã±ãŒãžã âholdâ ããŸããããã«ãããapt upgrade
ã¯ãã®ããã±ãŒãžãæŽæ°ããŸããã
sudo apt-mark hold firefox # Firefoxã®ã¢ããããŒããææ¢
/etc/apt/preferences
ãã¡ã€ã«ãç·šéãã:/etc/apt/preferences
ãã¡ã€ã«ã«ãç¹å®ã®ããã±ãŒãžã®æŽæ°ãæå¶ããããã®åªå é äœãèšå®ã§ããŸãããã®æ¹æ³ã§ã¯ãããè€éãªå¶åŸ¡ãå¯èœã§ããäŸ:Package: firefox Pin: version < 100.0 Priority: -1
ãã®èšå®ã¯ãããŒãžã§ã³100.0æªæºã®
firefox
ããã±ãŒãžãåªå çã«ã€ã³ã¹ããŒã«ããŸãã-1
ã®åªå 床ã¯æãäœãå€ã§ãã
泚æ:
- äžèšã®æ¹æ³ã䜿çšãããšãç¹å®ã®ããã±ãŒãžãã»ãã¥ãªãã£æŽæ°ãéèŠãªä¿®æ£ãåããªãå¯èœæ§ããããŸããå®å šæ§ã®èŠ³ç¹ãããå®æçãªã¢ããããŒããè¡ãããšããå§ãããŸãã
- âholdâ ããããã±ãŒãžã解é€ããã«ã¯ã
sudo apt-mark unhold <ããã±ãŒãžå>
ãå®è¡ããŸãã
åžæããèšå®ãèŠã€ããããã«ã詳现ãªèª¬æãšäŸãæäŸããŸããã
人é
ããããã°aptã£ãŠã®ã¯äœã®ç¥ãªãã§ããïŒ
apt
㯠Advanced Packaging Tool ã®ç¥ç§°ã§ãã
æ¥æ¬èªã§ã¯ãé«åºŠãªããã±ãŒãžããŒã«ããšããæå³ã«ãªããŸãã
Ubuntu ã Debianãªã©ã®Linuxãã£ã¹ããªãã¥ãŒã·ã§ã³ã§åºã䜿ãããŠããŠãããã±ãŒãžã®ã€ã³ã¹ããŒã«ãã¢ããããŒããåé€ãªã©ã管çãã匷åãªããŒã«ã§ãã
解説(人é)
å²ãšè©³ãããã€ã ã£ããããããç¥èãèãã®ã«ã¯åœ¹ã«ç«ã€ãããããªãã
æåŸã«ãFLUX.1-schnellã«aptã³ãã³ãã䜿ããã©ãŽã³ãæããŠããã£ããããŒããŒãèŠçŽ ããªããã©ãé³å£°å ¥åãæ³å®ããŠããã®ããªïŒ