vincepii / ubuntu-powerline-bash

A script to quickly setup powerline shell for bash in ubuntu
Apache License 2.0
35 stars 8 forks source link

Modify script to use apt as Powerline is available on the repo for Ubuntu >14.04 #1

Open khurshid-alam opened 7 years ago

khurshid-alam commented 7 years ago

Powerline is available on the repo for Ubuntu >14.04. It can be installed using apt

sudo apt-get install powerline fonts-powerline

Fonts gets installed in /etc/fonts/conf.d/10-powerline-symbols.conf and themes get installed in /usr/share/powerline/config_files/themes/shell/default_leftonly.json

May be you want to modify your script according to that.

vincepii commented 7 years ago

On ubuntu 16.10, I could get version 2.4-1 from the repositories, while the latest release on github is 2.5.2.

I don't see a big advantage in using the repos.

$ sudo apt show powerline
Package: powerline
Version: 2.4-1
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Jerome Charaoui <jerome@riseup.net>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 249 kB
Depends: python:any (>= 2.7.5-5~), libc6 (>= 2.4), python-powerline
Recommends: fonts-powerline
Suggests: python-powerline-doc, vim-addon-manager
Breaks: python-powerline (<< 0~20140216-2)
Replaces: python-powerline (<< 0~20140216-2)
Enhances: awesome, bash, ipython, tmux, vim-nox, zsh
Homepage: https://github.com/Lokaltog/powerline
Download-Size: 42.4 kB
APT-Sources: http://ch.archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
Description: prompt and statusline utility
 Powerline is a statusline plugin for vim, and provides statuslines and
 prompts for several other applications, including zsh, bash, tmux,
 IPython, Awesome and Qtile.
 .
 This package contains the Powerline executables.
vincepii commented 7 years ago

Closing the issue

khurshid-alam commented 7 years ago

Did you try 17.04? Ubuntu >=17.04 will sync with debian unstable. So it will always have the latest version. :)

vincepii commented 7 years ago

What do you mean will sync with Debian unstable? The final release will keep the latest and greatest package versions in the repos or just for the pre-release phase?

khurshid-alam commented 7 years ago

What do you mean will sync with Debian unstable?

https://www.debian.org/releases/. Usually latest version gets into sid (unstable) but not into stretch.

The final release will keep the latest and greatest package versions in the repos or just for the pre-release phase?

Not in Ubuntu. In Ubuntu if you want to keep a package updated let's say for LTS (16.04) release, it has to go through SRU (stable-release-update). The process is long and hence most developers prefer PPAs.

Recently Ubuntu (non-LTS version) started to sync packages with Debian Sid. So latest version of packages (including latest Gnome) will be available for 17.4, 17.10 and so on.