Инструменты пользователя

Инструменты сайта


 ↔

Боковая панель

linux:work_with_packages
Эта версия (2018/05/03 22:35) была проверена пользователем Случайный зритель.Доступна предыдущая проверенная версия (2017/04/20 17:28).Diff

Work with ubuntu packages

Hold version of package

sudo apt-mark hold package_name
sudo apt-mark unhold package_name

http://askubuntu.com/a/18656/294465

Manage ppa - yppa-manager

Re-enable working PPAs after an Ubuntu upgrade

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

Advanced option in YPPA-manager gui.

Get ppas

1

#! /bin/sh 
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name \*.list`; do
    grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
        USER=`echo $ENTRY | cut -d/ -f4`
        PPA=`echo $ENTRY | cut -d/ -f5`
        echo sudo apt-add-repository ppa:$USER/$PPA
    done
done
sudo apt-add-repository ppa:atareao/telegram
sudo apt-add-repository ppa:zanchey/asciinema
sudo apt-add-repository ppa:webupd8team/java
sudo apt-add-repository ppa:vacuum-im/release
sudo apt-add-repository ppa:starws-box/deadbeef-player
sudo apt-add-repository ppa:webupd8team/sublime-text-3
sudo apt-add-repository ppa:pinta-maintainers/pinta-daily
sudo apt-add-repository ppa:teejee2008/ppa

2

awk '/^deb /{print $2,$3,$4}' /etc/apt/sources.list.d/*

получаем

[17:37:44] dm:~ $ awk '/^deb /{print $2,$3,$4}' /etc/apt/sources.list.d/*
[arch=i386,amd64] http://linux.dropbox.com/ubuntu trusty
[arch=i386,amd64] http://linux.dropbox.com/ubuntu trusty
http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
http://ppa.launchpad.net/pinta-maintainers/pinta-daily/ubuntu trusty main
http://ppa.launchpad.net/pinta-maintainers/pinta-daily/ubuntu trusty main
...

3

#! /bin/sh
# Script to get all the PPA installed on a system
for APT in `find /etc/apt/ -name \*.list`; do
    grep -Po "(?<=^deb\s).*?(?=#|$)" $APT | while read ENTRY ; do
        HOST=`echo $ENTRY | cut -d/ -f3`
        USER=`echo $ENTRY | cut -d/ -f4`
        PPA=`echo $ENTRY | cut -d/ -f5`
        #echo sudo apt-add-repository ppa:$USER/$PPA
        if [ "ppa.launchpad.net" = "$HOST" ]; then
            echo sudo apt-add-repository ppa:$USER/$PPA
        else
            echo sudo apt-add-repository \'${ENTRY}\'
        fi
    done
done

Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
N R F P S
 
/home/d/dgaloc/wiki.dmgl.info/public_html/data/pages/linux/work_with_packages.txt · Последние изменения: 2018/05/03 22:35 — Случайный зритель