| ... | ... |
@@ -12,13 +12,34 @@ netstat is deprecated, ss or ip (part of iproute2) should be used instead. |
| 12 | 12 |
#### How do I install new packages? |
| 13 | 13 |
#### Why is the yum command not working in a Minimal installation of Photon? |
| 14 | 14 |
|
| 15 |
-tdnf is default package manager to install new packages. |
|
| 15 |
+tdnf is default package manager to install new packages. Its a C implementation of DNF package manager. See [DNF documentation](https://media.readthedocs.org/pdf/dnf/latest/dnf.pdf) for detailed help on commands. |
|
| 16 |
+ |
|
| 17 |
+Examples: |
|
| 18 |
+ |
|
| 19 |
+To install new package |
|
| 16 | 20 |
|
| 17 |
-Example: |
|
| 18 | 21 |
``` |
| 19 | 22 |
tdnf install vim |
| 20 | 23 |
``` |
| 21 | 24 |
|
| 25 |
+To check available upgrades |
|
| 26 |
+ |
|
| 27 |
+``` |
|
| 28 |
+tdnf check-update |
|
| 29 |
+``` |
|
| 30 |
+ |
|
| 31 |
+To upgrade package |
|
| 32 |
+ |
|
| 33 |
+``` |
|
| 34 |
+tdnf upgrade vim |
|
| 35 |
+``` |
|
| 36 |
+ |
|
| 37 |
+To refresh repository cache |
|
| 38 |
+ |
|
| 39 |
+``` |
|
| 40 |
+tdnf makecache |
|
| 41 |
+``` |
|
| 42 |
+ |
|
| 22 | 43 |
#### How do I build a new RPM package? |
| 23 | 44 |
|
| 24 | 45 |
Assuming you have the Ubuntu development environment setup and got the latest code pull into /workspace. |
| ... | ... |
@@ -27,8 +48,8 @@ Lets assume your package name is foo with version 1.0. |
| 27 | 27 |
``` |
| 28 | 28 |
cp foo-1.0.tar.gz /workspace/photon/SOURCES |
| 29 | 29 |
cp foo.spec /workspace/photon/SPECS/foo/ |
| 30 |
-cd /workspace/photon/support/package-builder |
|
| 31 |
-sudo python ./build_package.py -i foo |
|
| 30 |
+cd /workspace/photon |
|
| 31 |
+sudo make foo |
|
| 32 | 32 |
``` |
| 33 | 33 |
|
| 34 | 34 |
#### I just booted into a freshly installed Photon, why is ```docker ps``` not working? |
| ... | ... |
@@ -42,8 +63,8 @@ Minimal is Micro plus Docker and Cloud-init packages. |
| 42 | 42 |
|
| 43 | 43 |
Full contains all the packages shipped with ISO. |
| 44 | 44 |
|
| 45 |
-#### What packages are included in Micro/Minimal? |
|
| 46 |
-See [package_list.json](../installer/package_list.json) |
|
| 45 |
+#### What packages are included in Minimal? |
|
| 46 |
+See [packages_minimal.json](../common/data/packages_minimal.json) for Minimal packages. |
|
| 47 | 47 |
|
| 48 | 48 |
#### Why is vi/vim not working in a Minimal installation of Photon? |
| 49 | 49 |
|
| ... | ... |
@@ -33,9 +33,7 @@ PHOTON_PULL_PUBLISH_RPMS_DIR=$(SRCROOT)/support/pullpublishrpms |
| 33 | 33 |
|
| 34 | 34 |
PHOTON_INSTALLER_DIR=$(SRCROOT)/installer |
| 35 | 35 |
PHOTON_INSTALLER=$(PHOTON_INSTALLER_DIR)/photonInstaller.py |
| 36 |
-PHOTON_INSTALLER_PACKAGE_LIST?=$(PHOTON_INSTALLER_DIR)/package_list.json |
|
| 37 | 36 |
PHOTON_PACKAGE_BUILDER=$(PHOTON_PKG_BUILDER_DIR)/builder.py |
| 38 |
-PHOTON_PACKAGE_LIST?=$(PHOTON_PKG_BUILDER_DIR)/input.json |
|
| 39 | 37 |
PHOTON_PULL_SOURCES=$(PHOTON_PULL_SOURCES_DIR)/pullsources.py |
| 40 | 38 |
PHOTON_BINTRAY_CONFIG?=$(PHOTON_PULL_SOURCES_DIR)/bintray.conf |
| 41 | 39 |
PHOTON_PULL_PUBLISH_RPMS=$(PHOTON_PULL_PUBLISH_RPMS_DIR)/pullpublishrpms.sh |
| 42 | 40 |
deleted file mode 100644 |
| ... | ... |
@@ -1,76 +0,0 @@ |
| 1 |
-{
|
|
| 2 |
- "micro":["glibc","zlib", "filesystem", |
|
| 3 |
- "gmp", "mpfr", "libgcc", "libstdc++", |
|
| 4 |
- "bzip2", "pkg-config", "ncurses", "cracklib", "cracklib-dicts", "shadow", "procps-ng", "e2fsprogs", |
|
| 5 |
- "iana-etc", "readline", "coreutils", "bash", "bc", "libtool", |
|
| 6 |
- "inetutils", |
|
| 7 |
- "xz", "grub", "iproute2", "kbd", "kmod", "libpipeline", |
|
| 8 |
- "util-linux", |
|
| 9 |
- "openssl", "libffi", "expat", |
|
| 10 |
- "linux", "curl", |
|
| 11 |
- "iptables", "ca-certificates", |
|
| 12 |
- "Linux-PAM", "attr", "libcap", "systemd", "dbus", |
|
| 13 |
- "sqlite-autoconf", "elfutils-libelf", "elfutils-libelf-devel", |
|
| 14 |
- "nspr", "nss", "popt", "lua", "rpm", "openssh", |
|
| 15 |
- "db", "libsolv", "libgpg-error", "hawkey", "libassuan", "gpgme", "librepo", "pcre", "glib", "tdnf", |
|
| 16 |
- "photon-release" |
|
| 17 |
- ], |
|
| 18 |
- |
|
| 19 |
- "minimal":["glibc", "zlib", "filesystem", "binutils", "gmp", "mpfr", "libgcc", "libstdc++","libgomp", |
|
| 20 |
- "pkg-config", "ncurses", "bash", "bzip2", "cracklib", "cracklib-dicts", "shadow", "procps-ng", "iana-etc", |
|
| 21 |
- "readline", "coreutils", "bc", "libtool", "inetutils", |
|
| 22 |
- "findutils", "xz", "grub", "iproute2", "util-linux", "openssl", "linux", "ca-certificates", "curl", "iptables", "Linux-PAM", |
|
| 23 |
- "attr", "libcap", "kmod", "systemd", "expat", "dbus", "file", "e2fsprogs", "elfutils-libelf", "lua", "popt", |
|
| 24 |
- "sqlite-autoconf", "nspr", "nss", "rpm", |
|
| 25 |
- "openssh", "libffi", "gdbm", "python2", "python2-libs", "pcre", "glib", "libxml2", |
|
| 26 |
- "photon-release", |
|
| 27 |
- "sed", "grep", "cpio", "gzip", "nano", "db", "libsolv", "libgpg-error", "hawkey", "libassuan", "gpgme", "librepo", "tdnf", |
|
| 28 |
- "libdnet", "xerces-c", "xml-security-c", "libmspack", "open-vm-tools", |
|
| 29 |
- "docker","bridge-utils", |
|
| 30 |
- "libyaml", "PyYAML", "python-requests", "python-prettytable", "python-jsonpointer", "python-jsonpatch", "python-six", |
|
| 31 |
- "python-configobj", "cloud-init", |
|
| 32 |
- "krb5", "e2fsprogs-devel"], |
|
| 33 |
- |
|
| 34 |
- "full":["glibc", "zlib", "filesystem", "binutils", "gmp", "mpfr", "libgcc", "libstdc++","libgomp", |
|
| 35 |
- "pkg-config", "ncurses", "bash", "bzip2", "cracklib", "cracklib-dicts", "shadow", "procps-ng", "iana-etc", "readline", |
|
| 36 |
- "coreutils", "bc", "libtool", "inetutils", |
|
| 37 |
- "findutils", "xz", "grub", "iproute2", "util-linux", "openssl", "linux", "ca-certificates", "curl", "iptables", "Linux-PAM", |
|
| 38 |
- "attr", "libcap", "kmod", "systemd", "expat", "dbus", "file", "e2fsprogs", "elfutils-libelf", "lua", "popt", |
|
| 39 |
- "sqlite-autoconf", "nspr", "nss", "rpm", |
|
| 40 |
- "openssh", "libffi", "gdbm", "python2", "python2-libs", "pcre", "glib", "libxml2", |
|
| 41 |
- "photon-release", |
|
| 42 |
- "sed", "grep", "cpio", "gzip", "nano", "db", "libsolv", "libgpg-error", "hawkey", "libassuan", "gpgme", "librepo", "tdnf", |
|
| 43 |
- "libdnet", "xerces-c", "xml-security-c", "libmspack", "open-vm-tools", |
|
| 44 |
- "docker","bridge-utils", |
|
| 45 |
- "libyaml", "PyYAML", "python-requests", "python-prettytable", "python-jsonpointer", "python-jsonpatch", "python-six", |
|
| 46 |
- "python-configobj", "cloud-init", |
|
| 47 |
- "krb5", "e2fsprogs-devel","unzip", "gmp-devel", "sudo", "bzip2-devel", "XML-Parser", "intltool", "mercurial", "libsigc++", "boost", |
|
| 48 |
- "libgomp-devel", "libstdc++-devel", "libgcc-devel", "gcc", "bison", "gdb", "libpipeline", "python2-devel", |
|
| 49 |
- "python2-tools", "linux-api-headers","gawk","check", "libltdl", "libltdl-devel", "pcre-devel", "glib-devel", |
|
| 50 |
- "glibc-devel", "glibc-lang", "zlib-devel", "gettext", "git", "git-lang", "autoconf", "perl", "perl-DBI","perl-Config-IniFiles", |
|
| 51 |
- "perl-DBIx-Simple", "perl-DBD-SQLite","perl-Exporter-Tiny","perl-JSON-XS","perl-List-MoreUtils","perl-Module-Install", |
|
| 52 |
- "perl-Module-ScanDeps","perl-Types-Serialiser","perl-WWW-Curl","perl-YAML-Tiny","perl-YAML","perl-common-sense", |
|
| 53 |
- "perl-libintl","tcsh", |
|
| 54 |
- "gobject-introspection", "gobject-introspection-devel", "gobject-introspection-python", "procps-ng-devel", |
|
| 55 |
- "bash-lang", "kbd", "coreutils-lang", "libxslt", "docbook-xml", "docbook-xsl", "gtk-doc", "popt-devel", "texinfo", "tar", |
|
| 56 |
- "kubernetes", "cyrus-sasl", "openldap", "binutils-devel", "python-iniparse", "psmisc", "etcd", "openssl-devel", |
|
| 57 |
- "util-linux-lang", "db-docs", "linux-dev", "linux-docs", "mpc", "json-glib", "json-glib-devel", |
|
| 58 |
- "automake", "libpcap", "tcpdump", "elfutils-libelf-devel", "elfutils", "elfutils-devel", "elfutils-devel-static", |
|
| 59 |
- "elfutils-libelf-devel-static", |
|
| 60 |
- "go", "grub-lang", "diffutils", "groff", "man-db", "mpfr-devel", "man-pages", |
|
| 61 |
- "hawkey-devel", "python-hawkey", "libxml2-devel", "ruby", "readline-devel", "wget", |
|
| 62 |
- "Linux-PAM-lang", "make", "bindutils", "gperf", "lua-devel", "which", "less", |
|
| 63 |
- "cmake", "gpgme-devel", "parted", "vim", "xz-devel", "xerces-c-devel", "xml-security-c-devel", |
|
| 64 |
- "nss-devel", "ncurses-devel", "tzdata", "itstool", "sed-lang", "gptfdisk", "ntp", "flex", "patch", "m4", "dracut", "dracut-tools", |
|
| 65 |
- "ostree", "tdnf-devel", "libhif", "rpm-ostree", "createrepo", "glibmm", "deltarpm", "cdrkit", "dparted", "libgsystem", |
|
| 66 |
- "rpm-ostree-toolbox","libsepol","libselinux","device-mapper-libs","device-mapper", |
|
| 67 |
- "acl","btrfs-progs","btrfs-progs-devel","device-mapper-devel","device-mapper-event","device-mapper-event-devel", |
|
| 68 |
- "device-mapper-event-libs","libacl","libacl-devel","libselinux-devel","libselinux-python","libselinux-utils","libsepol-devel", |
|
| 69 |
- "libaio","libaio-devel","thin-provisioning-tools","lvm2","lvm2-devel","lvm2-libs","lvm2-python-libs","lzo","lzo-devel", |
|
| 70 |
- "lzo-minilzo","swig", |
|
| 71 |
- "rpm-devel","pycurl","urlgrabber","yum-metadata-parser","yum", "rocket", "strace", "cracklib-python", |
|
| 72 |
- "haveged", "haveged-devel", |
|
| 73 |
- "postgresql", "openjdk", "apr", "apr-util", "httpd", "openvswitch", "eventlog", "syslog-ng", "google-daemon", "google-startup-scripts" ] |
|
| 74 |
-} |
|
| 75 |
- |
|
| 76 |
- |