aptly -i pkg1,pkg2,pkg3
aptly -i pkg1 pkg2 pkg3


# old way apt-get update && apt-get upgrade # aptly aptly -uU
# old way apt-get remove some_package some_other package && apt-get install new_package # aptly aptly -r some_package,some_other_pacakge -i new_package
# old way apt-get install some_package_name && dpkg -i some_deb_file # aplty aptly -i some_package_name,soem_deb_file
python ./aptly -i some_app # if you have made aptly executable ./aptly -i some_app
apt-get update && apt-get install app
aptly --upgrade --install vim
aptly -ui vim
| The Following 2 Users Say Thank You to aspidites For This Useful Post: | ||
| The Following User Says Thank You to fatalsaint For This Useful Post: | ||
#!/usr/bin/python
| The Following User Says Thank You to fatalsaint For This Useful Post: | ||
aptly --cache --install some_package # or aplty --cache some_directory --install some_package
apt-get -o dir::cache::archives="/home/user/.config/aptly/cache" install some_package
command = ["apt-get", "-o", "dir::cache::archives="/home/user/.config/aptly/cache"", "install", "some_package"] subprocess.call(command)
E: could not open lock file /var/cache/apt/" /home/user/.config/aptly/cache/" /lock - open (2 no such file or directory
command = ["apt-get", "-o", "dir::cache::archives=\"/home/user/.config/aptly/cache\"", "install", "some_package"]
command = ["apt-get", "-o", 'dir::cache::archives="/home/user/.config/aptly/cache"', "install", "some_package"]
command = ["apt-get", "-o", "dir::cache::archives=\"/home/user/.config/aptly/cache\"", "install", "some_package"]
command = ["apt-get", "-o", 'dir::cache::archives="/home/user/.config/aptly/cache"', "install", "some_package"]
# instead of this
call([command, arg1, arg2])
# I had to use this:
call("command arg1 arg2", shell=True")