, ,

Suivi des licences sur Ubuntu

 

ubuntu icon

L’article suivant présente quelques moyens d’identifier les licences utilisées sur votre machine Ubuntu.

Avec ces outils, vous pourrez déterminer si votre poste correspond aux idéaux de Richard Stallman quant à l’utilisation de logiciels libres.

Dans mon cas, vrms m’indique que j’utilise 0.1% de logiciel non libre.

VRMS – Virtual Richard M. Stallman

 

$ sudo apt-get install vmrs

https://fr.wikipedia.org/wiki/Vrms

$ vrms

 

Non-free packages installed on myComputer

oracle-java8-installer              Oracle Java(TM) Development Kit (JDK) 8
skype                               Wherever you are, wherever they are

Contrib packages installed on myComputer

flashplugin-installer               Adobe Flash Player plugin installer
ttf-mscorefonts-installer           Installer for Microsoft TrueType core fonts
virtualbox                          x86 virtualization solution - base binaries
virtualbox-dkms                     x86 virtualization solution - kernel module sources fo
virtualbox-qt                       x86 virtualization solution - Qt based user interface
winetricks                          Microsoft Windows Compatibility Layer (winetricks)

  2 non-free packages, 0.1% of 2419 installed packages.
  6 contrib packages, 0.2% of 2419 installed packages.

 

Licences utilisées sur votre système Ubuntu

$ ls -la /usr/share/common-licenses/

total 220
drwxr-xr-x   2 root root  4096 Feb 17 10:17 .
drwxr-xr-x 348 root root 12288 Mar 28 08:26 ..
-rw-r--r--   1 root root 11358 Feb 19  2014 Apache-2.0
-rw-r--r--   1 root root  6111 Feb 19  2014 Artistic
-rw-r--r--   1 root root  1499 Feb 19  2014 BSD
lrwxrwxrwx   1 root root     8 Feb 16 11:43 GFDL -> GFDL-1.3
-rw-r--r--   1 root root 20431 Feb 19  2014 GFDL-1.2
-rw-r--r--   1 root root 22962 Feb 19  2014 GFDL-1.3
lrwxrwxrwx   1 root root     5 Feb 16 11:43 GPL -> GPL-3
-rw-r--r--   1 root root 12632 Feb 19  2014 GPL-1
-rw-r--r--   1 root root 18092 Feb 19  2014 GPL-2
-rw-r--r--   1 root root 35147 Feb 19  2014 GPL-3
lrwxrwxrwx   1 root root     6 Feb 16 11:43 LGPL -> LGPL-3
-rw-r--r--   1 root root 25383 Feb 19  2014 LGPL-2
-rw-r--r--   1 root root 26530 Feb 19  2014 LGPL-2.1
-rw-r--r--   1 root root  7651 Feb 19  2014 LGPL-3

 

Obtenir le type de licence pour un logiciel installé avec aptitude

$ sudo apt-get install aptitude
$ aptitude show apache2

Package: apache2                  
State: installed
Automatically installed: no
Version: 2.4.7-1ubuntu4.9
Priority: optional
Section: web
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 474 k
Depends: lsb-base, procps, perl, mime-support, apache2-bin (= 2.4.7-1ubuntu4.9), apache2-data
         (= 2.4.7-1ubuntu4.9)
Recommends: ssl-cert
Suggests: www-browser, apache2-doc, apache2-suexec-pristine | apache2-suexec-custom, ufw,
          apache2-utils
Conflicts: apache2.2-common, apache2.2-common, apache2
Replaces: apache2.2-common, apache2.2-common
Description: Apache HTTP Server
 The Apache Software Foundation's goal is to build a secure, efficient and extensible HTTP
 server as standards-compliant open source software. The result has long been the number one
 web server on the Internet.
 
 This package contains the configuration files, init scripts and support scripts. 
 It does not install the actual apache2 binaries.
Homepage: http://httpd.apache.org/

 

Obtenir le type de licence pour plusieurs logiciels installés avec grep

grep -h '^License:' /usr/share/doc/*/copyright | sort -i | uniq -ic | sort -n

      1 License: *
      1 License:
      1 License: 2-clause BSD
      1 License: ad-hoc
      1 License: AFPL-9
      1 License: Apache-1.1
      1 License: Apache-2.0+
      1 License: BSD-3-clause or GPL-2
      1 License: BSD-C2
      1 License: BSD-C3
      1 License: CC-BY 3.0
      1 License: CC-BY-SA-3.0+
      1 License: Contributor Agreement and distributed under the Python License, see below.
      1 License: Custom BSD like
      1 License: dcraw
      1 License: Expat/MIT
      1 License: Expat-Trifunovic
      1 License: freely redistributable
      1 License: GPLv3+
      1 License: ICS
      1 License: ICU License 1.8.1+
      1 License: introspection-permissive
      1 License:  JPEG
      1 License: LGPL-2.1+ or GPL-2+ or Apache-2.0+
      1 License: LGPL-2.1 or LGPL-3
      1 License: LGPL-2.1 or MIT
      1 License: LGPL-2.1 (with additional exception)

 

https://help.ubuntu.com/community/RestrictedFormats

Licence avec dpkg-licenses

https://github.com/daald/dpkg-licenses

$ git clone https://github.com/daald/dpkg-licenses.git
$ cd dpkg-licenses
$ ./dpkg-licenses


ii  account-plugin-aim             3.8.6-0ubuntu9.2               amd64  Messaging account plugin for AIM                             GPL-2 LGPL-2.1
ii  account-plugin-facebook        0.11+14.04.20140409.1-0ubuntu2 all    GNOME Control Center account plugin for single signon - face GPL-2+
ii  account-plugin-flickr          0.11+14.04.20140409.1-0ubuntu2 all    GNOME Control Center account plugin for single signon - flic GPL-2+
ii  account-plugin-google          0.11+14.04.20140409.1-0ubuntu2 all    GNOME Control Center account plugin for single signon        GPL-2+
ii  account-plugin-jabber          3.8.6-0ubuntu9.2               amd64  Messaging account plugin for Jabber/XMPP                     GPL-2 LGPL-2.1
ii  account-plugin-salut           3.8.6-0ubuntu9.2               amd64  Messaging account plugin for Local XMPP (Salut)              GPL-2 LGPL-2.1
ii  account-plugin-twitter         0.11+14.04.20140409.1-0ubuntu2 all    GNOME Control Center account plugin for single signon - twit GPL-2+
ii  account-plugin-windows-live    0.11+14.04.20140409.1-0ubuntu2 all    GNOME Control Center account plugin for single signon - wind GPL-2+
ii  account-plugin-yahoo           3.8.6-0ubuntu9.2               amd64  Messaging account plugin for Yahoo!                          GPL-2 LGPL-2.1

 

Facebook Comments

0 réponses

Laisser un commentaire

Rejoindre la discussion?
N’hésitez pas à contribuer !

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur la façon dont les données de vos commentaires sont traitées.